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

[PATCH 0/2] cat-file --batch-check='%(deltabase)'

From
Jeff King <peff@peff.net>
Date
Dec 21, 2013, 14:23 UTC
Message-ID
<20131221142336.GA28649@sigill.intra.peff.net>

This series lets you query the delta base for a particular object (or set of objects), like:

  $ git rev-list --objects --all |
    git cat-file --batch-check='%(objectname) %(deltabase) %(rest)'

The only other way I know of to get this information is using verify-pack (or index-pack), which is much slower (and less convenient to parse).

I needed this recently to write tests for another (not yet published) series. But I think it stands on its own as a debugging / introspection tool.

  [1/2]: sha1_object_info_extended: provide delta base sha1s
  [2/2]: cat-file: provide %(deltabase) batch format
-Peff
Next: Jeff King
Message 1 of 5 in “cat-file --batch-check='%(deltabase)'”
  1. 0/2 cat-file --batch-check='%(deltabase)'Jeff King, Dec 21, 2013
  2. 1/2 sha1_object_info_extended: provide delta base sha1sJeff King, Dec 21, 2013
  3. Junio C HamanoDec 26, 2013
  4. 2/2 cat-file: provide %(deltabase) batch formatJeff King, Dec 21, 2013
  5. Jonathan NiederDec 26, 2013

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.