]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/gc.c
git-gc --auto: run "repack -A -d -l" as necessary.
authorJunio C Hamano <gitster@pobox.com>
Mon, 17 Sep 2007 07:55:13 +0000 (00:55 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Sep 2007 06:12:16 +0000 (23:12 -0700)
commit17815501a8f95c080891acd9537514adfe17c80e
tree24a58abb997d75c363997883ebde4032ea0ebbc7
parent95143f9e686dee144e0ff4a20190b923e20e1b64
git-gc --auto: run "repack -A -d -l" as necessary.

This teaches "git-gc --auto" to consolidate many packs into one
without losing unreachable objects in them by using "repack -A"
when there are too many packfiles that are not marked with *.keep
in the repository.  gc.autopacklimit configuration can be used
to set the maximum number of packs a repository is allowed to
have before this mechanism kicks in.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-gc.txt
builtin-gc.c