title: Abbreviating pathname prefixes from the output of git log --stat
body: <p>When I run <code>git log --stat</code> on a repository where most of the changes are occurring in the same subtree deep in the hierarchy, I may get something like this:</p>
  
  <pre><code>$ git log --stat
  commit xxxxxxx
  Author: xxx
  Date:   xxx
  
      commit message
  
  .../toplevel/networking/services/cool_analysis/Makefile    |  10 ++
  .../networking/services/cool_analysis/cool_analysis_main.c | 209 +++............
  .../subdirectory/util/cool_analysis_helper.c               | 112 +++.......
  </code></pre>
  
  <p>where everything shares the common prefix <code>xxx/toplevel/networking/services/cool_analysis</code> (and <code>subdirectory</code> is runder that) but the output of <code>git log --stat</code> makes it really hard to recognize the fact, because different amounts of the pathname prefixes are abbreviated. Instead I would like something like this:</p>
  
  <pre><code>$ git log --stat --strip=xxx/toplevel/networking/services/cool_analysis
  commit xxxxxxx
  Author: xxx
  Date:   xxx
  
      commit message
  
  .../Makefile                                 |  10 ++
  .../cool_analysis_main.c                     | 209 +++............
  .../subdirectory/util/cool_analysis_helper.c | 112 +++.......
  </code></pre>
  
  <p>Is there a way to get this? The manual doesn't seem to have anything about it, and post-processing the output with <code>sed</code> or something is hard because the pathnames are already abbreviated. (<code>git log --name-only</code> gives unabbreviated full pathnames, but it doesn't give you the stats.)</p>