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

Re: git log causing hang while browsing upstream linux

From
Taylor Blau <me@ttaylorr.com>
Date
Apr 11, 2023, 00:00 UTC
Message-ID
<ZDSjBQhyDBGi9wBN@nand.local>
In-Reply-To
<CAKazavzS112w3wsxnA-2ibWH3xGrE_w7Av+VZg-DfgfH0aK72A@mail.gmail.com>
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" once before running "git log --oneline --graph", you'll get near-instantaneous results.

Thanks, Taylor

Previous: Rohit NerNext: Kristoffer Haugsbakk
Message 5 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.