Skip to content

Updated git-gc --auto series.

Junio C Hamano git 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8Export matches_pack_name() and fix its return valuecache.h sha1_file.c+8 -70 replies
2/8pack-objects --keep-unreachablebuiltin-pack-objects.c+93 -20 replies
3/8repack -A -d: use --keep-unreachable when repackinggit-repack.sh+11 -30 replies
4/8git-gc --auto: move threshold check to need_to_gc() function.builtin-gc.c+7 -20 replies
5/8git-gc --auto: add documentation.Documentation/config.txt Documentation/git-gc.txt+17 -10 replies
6/8git-gc --auto: protect ourselves from accumulated cruftbuiltin-gc.c+17 -80 replies
7/8git-gc --auto: restructure the way "repack" command line is built.builtin-gc.c+10 -50 replies
8/8git-gc --auto: run "repack -A -d -l" as necessary.Documentation/config.txt Documentation/git-gc.txt builtin-gc.c+64 -90 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] Updated git-gc --auto series.

An updated series of "git-gc --auto", on top of 'next', consisting of 8 patches, will follow this message.

Differences from the previous round are:

- Earlier if you have too many unreachable loose objects, automated gc would have tried to "repack -d -l" which would not improve the situation at all every time it was run. It now at least warns upon such a situation;

- pack-objects learned --keep-unreachable option which helps "repack -a -d" not to lose packed but unreachable objects while repacking existing packs into a new pack;

- repack learned -A option which is similar to -a but gives --keep-unreachable to underlying pack-objects;

- "git-gc --auto" runs "git-repack -A -d -l" when there are too many packs in the repository;

- These changes are documented ;-)