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

[PATCH 0/4] Add git-pack-intersect

From
Lukas Sandström <lukass@etek.chalmers.se>
Date
Nov 9, 2005, 01:20 UTC
Message-ID
<43714EFB.5070705@etek.chalmers.se>

This patch series adds git-pack-intersect. It finds redundant packs by calculating the union of all objects present in .git/objects/pack and then computing the smallest set of packs which contain all the objects in this union.

It is quite fast, if I may say so myself. On my AMD3200+ it manages to minimize a linux-2.6 repository with 9 pack files totaling 430MB in ~0.7 seconds. The remaining packfiles total 102MB, which is a nice reduction.

git-fsck-objects reports no errors after pruning, but the algorithm is not proven correct so backups might be in order before this gets more testing.

/Lukas
Next: Lukas Sandström
Message 1 of 10 in “Add git-pack-intersect”
  1. 0/4 Add git-pack-intersectLukas Sandström, Nov 9, 2005
  2. 1/4 Add git-pack-intersectLukas Sandström, Nov 9, 2005
  3. 2/4 Add documentation for git-pack-intersectLukas Sandström, Nov 9, 2005
  4. 3/4 Add git-pack-intersect to .gitignoreLukas Sandström, Nov 9, 2005
  5. 4/4 Make git-repack use git-pack-intersectLukas Sandström, Nov 9, 2005
  6. Petr BaudisNov 9, 2005
  7. Andreas EricssonNov 9, 2005
  8. Lukas SandströmNov 9, 2005
  9. Junio C HamanoNov 10, 2005
  10. Rename git-pack-intersect to git-pack-redundantLukas Sandström, Nov 9, 2005

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.