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

standalone library/tool to query commit-graph?

From
KOKarl Ostmo <kostmo@gmail.com>
Date
May 22, 2019, 18:49 UTC
Message-ID
<CAECbv94KF9MhzZqa8BR-RL93mh0NuD3vA69pAT-sY5O74e_duQ@mail.gmail.com>

After producing the file ".git/objects/info/commit-graph" with the command "git commit-graph write", is there a way to answer queries like "git merge-base --is-ancestor" without having a .git directory? E.g. is there a library that will operate on the "commit-graph" file all by itself?

Thanks, Karl

Next: Derrick Stolee
Message 1 of 12 in “standalone library/tool to query commit-graph?”
  1. Karl OstmoMay 22, 2019
  2. Derrick StoleeMay 22, 2019
  3. Jakub NarebskiMay 23, 2019
  4. Ævar Arnfjörð BjarmasonMay 23, 2019
  5. SZEDER GáborMay 23, 2019
  6. Derrick StoleeMay 23, 2019
  7. SZEDER GáborMay 24, 2019
  8. Ævar Arnfjörð BjarmasonMay 24, 2019
  9. SZEDER GáborMay 24, 2019
  10. Ævar Arnfjörð BjarmasonMay 24, 2019
  11. SZEDER GáborMay 24, 2019
  12. Jakub NarebskiJun 25, 2019

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.