title: Git log relative date shortest form
body: <p>I am looking for a way to make my git log shorter. I would like to have both the relative and the full date version: </p>
  
  <pre><code>* d01c261 2015-07-22 [-2d] A commit comment - John Doe (branch HEAD)
  </code></pre>
  
  <p>The <code>%ar</code> option gives something like <code>2 weeks ago</code> that might be rewritten <code>-2w</code>. </p>
  
  <p>One ugly way to get this is: </p>
  
  <pre><code>git lg | perl -pe 's/(\d+) (\w)\w+ ago/-$1$2/'
  </code></pre>
  
  <p>What better solution (apart from using <code>tig</code> or <code>gitk</code>) can I use?</p>