title: Optional indented newline in git log format
body: <p>I have been tinkering with <code>git</code> aliases for some <code>log</code> commands. I have most of what I'd like (<a href="https://stackoverflow.com/a/9074343/241211">credit here</a>), but I'm having trouble with one piece. When I call</p>
  
  <pre><code>git log --graph --format=format:'%h - [%ar] %s%+d'
  </code></pre>
  
  <p>I get </p>
  
  <pre><code>* ab123f - [6 hours ago] Fix the references
  |  (HEAD, origin/master, master)
  * bc123f - [8 hours ago] New build syntax
  * cd123f - [10 hours ago] Initial import
  </code></pre>
  
  <p>Where <code>%+d</code> adds a new line and puts the <code>--decorate</code> tags on it if they exist. What I would like is for the tags to be in line with the time stamp instead, like so:</p>
  
  <pre><code>* ab123f - [6 hours ago] Fix the references
  |          (HEAD, origin/master, master)
  * bc123f - [8 hours ago] New build syntax
  * cd123f - [10 hours ago] Initial import
  </code></pre>
  
  <p>How do I accomplish this? I do not want a bonus newline if there are no <code>--decorate</code> tags. I've been experimenting with various <a href="https://git-scm.com/docs/pretty-formats" rel="nofollow noreferrer">format placeholders:</a> <code>%+d</code>, <code>%-d</code>, <code>%+    d</code> (which doesn't work); permutations of <code>%&gt;(&lt;N&gt;)</code>, <code>%&gt;&gt;(&lt;N&gt;)</code>; and so on, but I can't get it to do what I want.</p>
  
  <p>Colors and further commit info had been removed for simplicity, but they seem to interfere with <a href="https://stackoverflow.com/a/22416145/241211">torek's answer.</a> The full command is below:</p>
  
  <pre><code>git log --graph --format=format:'%C(bold yellow)%h%C(reset) - %C(green)(%ar)%C(reset) %s %C(white)&lt;%an&gt;%C(reset)%C(auto)%+d%C(reset)'
  </code></pre>