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

[PATCH 0/4] pack-objects: support `--max-pack-size` for cruft packs

From
Taylor Blau <me@ttaylorr.com>
Date
Aug 28, 2023, 22:48 UTC
Message-ID
<cover.1693262936.git.me@ttaylorr.com>

This short series comes from the beginning of a longer one with the goal of giving users more flexible options to manage a set of cruft packs.

The goal of that series is to be able to do things like:
    $ git repack --cruft --max-cruft-size=10G

and coalesce smaller cruft packs together until they reach the given threshold.

This series takes a tiny step towards that direction by making `--max-pack-size` work with cruft packs. This will be necessary since we have to guess the size of cruft packs when we combine two or more existing cruft packs.

This accommodates situations like having an object which, when packed with a cruft pack that is below the size threshold, crosses over and causes the resulting pack to go above the size threshold. When specifying `--max-pack-size`, we would split the pack appropriately, and pack the aforementioned object separately.

But that is neither here nor there, since this series just makes a start in getting `--max-pack-size` to work with `--cruft`. Thanks in advance for your review!

Taylor Blau (4):
  builtin/pack-objects.c: remove unnecessary strbuf_reset()
  builtin/pack-objects.c: support `--max-pack-size` with `--cruft`
  Documentation/gitformat-pack.txt: remove multi-cruft packs alternative
  Documentation/gitformat-pack.txt: drop mixed version section
 Documentation/git-pack-objects.txt |  4 +--
 Documentation/gitformat-pack.txt   | 36 +-------------------
 builtin/pack-objects.c             |  8 ++---
 builtin/repack.c                   |  3 +-
 t/t5329-pack-objects-cruft.sh      | 54 ++++++++++++++++++++++++------
 5 files changed, 50 insertions(+), 55 deletions(-)
-- 
2.42.0.49.g03c54e21ee
Next: Taylor Blau
Message 1 of 8 in “pack-objects: support `--max-pack-size` for cruft packs”
  1. 0/4 pack-objects: support `--max-pack-size` for cruft packsTaylor Blau, Aug 28, 2023
  2. 2/4 builtin/pack-objects.c: support `--max-pack-size` with `--cruft`Taylor Blau, Aug 28, 2023
  3. Junio C HamanoAug 29, 2023
  4. Taylor BlauAug 29, 2023
  5. 4/4 Documentation/gitformat-pack.txt: drop mixed version sectionTaylor Blau, Aug 28, 2023
  6. 1/4 builtin/pack-objects.c: remove unnecessary strbuf_reset()Taylor Blau, Aug 28, 2023
  7. Junio C HamanoAug 29, 2023
  8. 3/4 Documentation/gitformat-pack.txt: remove multi-cruft packs alternativeTaylor Blau, Aug 28, 2023

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.