I've got a git alias for a log using the pretty format:
lg = log -10 --graph --abbrev-commit --pretty=format:'%C(auto)%d%Creset%n %C(bold yellow)%h%Creset - %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'
Which gives the following:
I can't seem to find a way to make a new line after the reference names only if the placeholder is non-empty.
The pretty formats wiki page has operators to add or remove (+ or -) the newline coming before the placeholder but not after.
+
operator is what I'm looking for. – Langer