Stefan Beller <> writes:

> As I am resending the patch, could somebody please explain me
> the mechanism of the "# repo-abbrev:" line? Even git itself doesn't
> use it in the .mailmap file, but a quick google search shows up only
> kernel repositories.

I had no idea (we really lack documentation on this), but some history
digging shows this:

  commit 7595e2ee6ef9b35ebc8dc45543723e1d89765ce3
  Author: Junio C Hamano <>
  Date:   Sat Nov 25 00:07:54 2006 -0800

      git-shortlog: make common repository prefix configurable with .mailmap
      The code had "/pub/scm/linux/kernel/git/" hardcoded which was
      too specific to the kernel project.
      With this, a line in the .mailmap file:
          # repo-abbrev: /pub/scm/linux/kernel/git/
      can be used to cause the substring to be abbreviated to /.../
      on the title line of the commit message.
      Signed-off-by: Junio C Hamano <>

It apparently serves to abbreviate commits coming from pull requests,
with a subject like

  Merge branch 'release' of 

Thomas Rast
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to