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

Re: [BUG] "git describe --match" performance

From
Jeff King <peff@peff.net>
Date
Oct 31, 2024, 15:31 UTC
Message-ID
<20241031153143.GA2275115@coredump.intra.peff.net>
In-Reply-To
<20241031151000.svsa7d2ogcdz7hf6@jpoimboe>
On Thu, Oct 31, 2024 at 08:10:00AM -0700, Josh Poimboeuf wrote:
Show 5 quoted lines
> > I think we'll build the commit graph file by default these days when you
> > run "git gc". But we don't build it immediately after cloning. Perhaps
> > we should change that.
> 
> Hm... I actually ran "git gc" and it didn't seem to help at all.

What version of Git are you running? I think gc enabled it by default in 31b1de6a09 (commit-graph: turn on commit-graph by default, 2019-08-13), which is v2.24.0.

You could also try "git commit-graph write --reachable" and see if that improves things. If it doesn't, then maybe you have the reading side turned off explicitly for some reason? Try "git config core.commitgraph" to see if you have that set to "false".

-Peff
Previous: Josh PoimboeufNext: Josh Poimboeuf
Message 4 of 10 in “[BUG] "git describe --match" performance”
  1. Josh PoimboeufOct 30, 2024
  2. Jeff KingOct 31, 2024
  3. Josh PoimboeufOct 31, 2024
  4. Jeff KingOct 31, 2024
  5. Josh PoimboeufOct 31, 2024
  6. Jeff KingOct 31, 2024
  7. Taylor BlauOct 31, 2024
  8. Kristoffer HaugsbakkOct 31, 2024
  9. Jeff KingOct 31, 2024
  10. Taylor BlauOct 31, 2024

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.