git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] mailmap: fix check for freeing memory

From
Thomas Rast <trast@inf.ethz.ch>
Date
Aug 20, 2013, 14:23 UTC
Message-ID
<871u5o785o.fsf@linux-k42r.v.cablecom.net>
In-Reply-To
<52137A63.3010609@googlemail.com>
Stefan Beller <stefanbeller@googlemail.com> 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 <junkio@cox.net>
  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 <junkio@cox.net>

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

  Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux
-- 
Thomas Rast
trast@{inf,student}.ethz.ch
Previous: Jeff KingNext: Stefan Beller
Message 7 of 12 in “mailmap: fix check for freeing memory”
  1. mailmap: fix check for freeing memoryStefan Beller, Aug 20, 2013
  2. Thomas RastAug 20, 2013
  3. Jeff KingAug 20, 2013
  4. Stefan BellerAug 20, 2013
  5. mailmap: remove redundant check for freeing memoryStefan Beller, Aug 20, 2013
  6. Jeff KingAug 20, 2013
  7. Thomas RastAug 20, 2013
  8. Stefan BellerAug 20, 2013
  9. Jeff KingAug 20, 2013
  10. Junio C HamanoAug 20, 2013
  11. Jeff KingAug 20, 2013
  12. Jeff KingAug 20, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.