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

Re: [BUG] git shortlog hangs in bare repo

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 25, 2010, 21:50 UTC
Message-ID
<20100425215042.GA25547@progeny.tock>
In-Reply-To
<u2i76c5b8581004221222ge8bb0b8cp55cb1f13d5f9692a@mail.gmail.com>
Hi Eugene,
Eugene Sajine wrote:
> I have tried to run this command in order to get some stats from the
> mainline bare repo. The result is that "shortlog" hangs for long
> period of time and nothing happens. At the same time git log works OK.

I’m a big shortlog fan, too, but I should mention a certain performance characteristic: to sort its results by author, it has to build the whole log before it can print anything to standard output at all. git log, on the other hand, starts printing the most pertinent output right away.

Not sure that’s the problem, but thought I should mention it.

It would be nice to know what git version you are using, to be able to check for relevant differences between your setup and mine.

Thanks for the report, Jonathan

The most interesting recent change I could find is in v1.7.1-rc0~85^2 (shortlog: warn the user when there is no input, 2010-02-24). That is for the no-repository case rather than the bare-repository one.

Previous: Ramkumar RamachandraNext: Eugene Sajine
Message 3 of 5 in “[BUG] git shortlog hangs in bare repo”
  1. Eugene SajineApr 22, 2010
  2. Ramkumar RamachandraApr 22, 2010
  3. Jonathan NiederApr 25, 2010
  4. Eugene SajineApr 26, 2010
  5. Jonathan NiederApr 26, 2010

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.