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

Re: [PATCH 0/2] mailmap from blobs

From
Jeff King <peff@peff.net>
Date
Dec 12, 2012, 17:59 UTC
Message-ID
<20121212175900.GA32767@sigill.intra.peff.net>
In-Reply-To
<7vhanr5f74.fsf@alter.siamese.dyndns.org>
On Wed, Dec 12, 2012 at 09:54:23AM -0800, Junio C Hamano wrote:
Show 20 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I noticed recently that the GitHub contributions page for git.git did
> > not seem very accurate. The problem is that while it uses shortlog, it
> > does not respect .mailmap, because we do not have a working tree from
> > which to read the .mailmap.
> >
> > This series adds a config option analogous to mailmap.file, but which
> > reads from a blob in the repository (so the obvious thing to set it to
> > is "HEAD:.mailmap" in a bare repo, and probably "master:.mailmap" if you
> > frequently want to traverse while on unrelated branches). The obvious
> > alternative is to checkout a temporary file of .mailmap and point
> > mailmap.file at it, but this is a bit more convenient.
> 
> Yeah, I think this is sane.
> 
> Have you considered defaulting to read from HEAD:.mailmap even when
> this new configuration is not there if core.bare is set?  I would
> imagine that it would be the most convenient and match people's
> expectations.

Yeah, I almost suggested that, but I figured it could wait for the feature to prove itself in the real world before turning it on by default. It _should_ be pretty harmless, though, so I don't mind turning it on by default.

-Peff
Previous: Junio C HamanoNext: Jeff King
Message 7 of 9 in “mailmap from blobs”
  1. 0/2 mailmap from blobsJeff King, Dec 12, 2012
  2. 1/2 mailmap: refactor mailmap parsing for non-file sourcesJeff King, Dec 12, 2012
  3. 2/2 mailmap: support reading mailmap from blobsJeff King, Dec 12, 2012
  4. 3/2 mailmap: clean up read_mailmap error handlingJeff King, Dec 12, 2012
  5. Jeff KingDec 13, 2012
  6. Junio C HamanoDec 12, 2012
  7. Jeff KingDec 12, 2012
  8. Jeff KingDec 13, 2012
  9. Junio C HamanoDec 13, 2012

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.