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

Re: I've noticed the command `git --git-dir=<path> shortlog`

From
Bryan Turner <bturner@atlassian.com>
Date
Feb 5, 2021, 20:02 UTC
Message-ID
<CAGyf7-EB=J1j1LOUiUBHE+g-hA1WXUNy3F4y84rCRwzGc2zo_A@mail.gmail.com>
In-Reply-To
<YB148VZJqKIPC8P2@coredump.intra.peff.net>
On Fri, Feb 5, 2021 at 9:28 AM Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
>
> It's possible somebody is relying on this in order to read ".mailmap" in
> a bare repository, but it seems rather unlikely. And the documentation
> says "If the file .mailmap exists at the toplevel of the repository",
> which I think pretty clearly means the top of the working tree.

There was a time, before the change was made to have bare repositories read the HEAD:.mailmap blob if one exists, when Bitbucket Server relied on this in order to have mailmapping. We'd unpack the `HEAD:.mailmap` blob to `.mailmap` in the bare repository whenever it changed. Now that it's automatically read out of the repository, though, that manual unpacking code was removed.

(Not disagreeing with your "seems rather unlikely", by the way. With the blob reading behavior I think it's probably true.)

Bryan
Previous: Jeff KingNext: Jeff King
Message 3 of 12 in “I've noticed the command `git --git-dir=<path> shortlog`”
  1. SURAFeb 1, 2021
  2. Jeff KingFeb 5, 2021
  3. Bryan TurnerFeb 5, 2021
  4. mailmap: only look for .mailmap in work treeJeff King, Feb 9, 2021
  5. Eric SunshineFeb 9, 2021
  6. Junio C HamanoFeb 9, 2021
  7. Jeff KingFeb 10, 2021
  8. Junio C HamanoFeb 9, 2021
  9. Jeff KingFeb 10, 2021
  10. Junio C HamanoFeb 10, 2021
  11. Jeff KingFeb 10, 2021
  12. Jeff KingFeb 10, 2021

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.