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

Re: git log causing hang while browsing upstream linux

From
Kristoffer Haugsbakk <code@khaugsbakk.name>
Date
Apr 11, 2023, 09:45 UTC
Message-ID
<a356d9d4-e7e5-460d-bf90-b9d51649a20b@app.fastmail.com>
In-Reply-To
<ZDSjBQhyDBGi9wBN@nand.local>
On Tue, Apr 11, 2023, at 02:00, Taylor Blau wrote:
> TL;DR: if you run "git commit-graph write" once before running "git log
> --oneline --graph", you'll get near-instantaneous results.
Cool! Testing on Linux repo:
Without it:
    $ time git log --oneline --graph | head -1
    *   0d3eb744aed4 Merge tag 'urgent-rcu.2023.04.07a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
    real	0m11.379s
    user	0m10.655s
    sys	0m0.726s
With it:
    $ time git log --oneline --graph | head -1
    *   0d3eb744aed4 Merge tag 'urgent-rcu.2023.04.07a' of git://git.kernel.org/pub/scm/linux/kernel/git/paulmck/linux-rcu
    real	0m0.032s
    user	0m0.014s
    sys	0m0.023s
Maybe I’m gonna enable `git maintenance` for my repos. :)
-- 
Kristoffer Haugsbakk
Previous: Taylor BlauNext: SZEDER Gábor
Message 6 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.