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

git pack-objects input list

From
Mike Hommey <mh@glandium.org>
Date
Dec 1, 2007, 10:45 UTC
Message-ID
<20071201104502.GA1457@glandium.org>
Hi,

While playing around with git-pack-objects, it seemed to me that the input it can take is not a simple list of object SHA1s. Unfortunately, the man page is not very verbose about that. While I'd happily send a patch for that, I'd prefer to actually know what kind of input it can take, and what it uses it for.

AFAICT, it can take the output of git-rev-list --all --objects (so, SHA1s followed by file names for blobs), which seems to be the same as what git-pack-objects --revs does internally, but it seems to have a string impact on how deltas are calculated (not giving file names makes it create a smaller pack in some cases, a bigger one in other cases).

Could someone knowing the delta calculation internals enlighten me ?
Thanks
Mike
Next: Linus Torvalds
Message 1 of 4 in “git pack-objects input list”
  1. Mike HommeyDec 1, 2007
  2. Linus TorvaldsDec 1, 2007
  3. Mike HommeyDec 1, 2007
  4. Nicolas PitreDec 2, 2007

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.