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

Re: git log causing hang while browsing upstream linux

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Apr 16, 2023, 07:09 UTC
Message-ID
<20230416070906.GA3271@szeder.dev>
In-Reply-To
<ZDSjBQhyDBGi9wBN@nand.local>
On Mon, Apr 10, 2023 at 08:00:05PM -0400, Taylor Blau wrote:
Show 10 quoted lines
> On Mon, Apr 10, 2023 at 10:37:15PM +0530, Rohit Ner wrote:
> > I have not given the command more than 10 seconds, shouldn't the
> > intended behaviour be to render the visible subgraph first?
> 
> This is possible with Git's "commit-graph" feature, which you can read
> about starting here:
> 
> 		https://devblogs.microsoft.com/devops/supercharging-the-git-commit-graph/
> 
> TL;DR: if you run "git commit-graph write"

Please never recommend 'git commit-graph write' without '--reachable'; scanning all packed objects to find commits to include in the commit-graph is just too inefficient for that.

> once before running "git log
> --oneline --graph", you'll get near-instantaneous results.

The commit-graph has been enabled by default in v2.24.0, released over three years ago. I wonder why Rohit's and/or Kristoffer's repos didn't have it already?!

Previous: Kristoffer HaugsbakkNext: Kristoffer Haugsbakk
Message 7 of 9 in “git log causing hang while browsing upstream linux”
  1. Rohit NerApr 4, 2023
  2. Kristoffer HaugsbakkApr 4, 2023
  3. Kristoffer HaugsbakkApr 4, 2023
  4. Rohit NerApr 10, 2023
  5. Taylor BlauApr 11, 2023
  6. Kristoffer HaugsbakkApr 11, 2023
  7. SZEDER GáborApr 16, 2023
  8. How to write to the commit graph on clone?Kristoffer Haugsbakk, Apr 16, 2023
  9. Ævar Arnfjörð BjarmasonApr 16, 2023

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.