Invoke "git gc --auto" from commit, merge, am and rebase.

The point of auto gc is to pack new objects created in loose
format, so a good rule of thumb is where we do update-ref after
creating a new commit.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2007-09-05 14:59:59 -07:00
parent 2c3c439947
commit d4bb43ee27
4 changed files with 6 additions and 0 deletions

View File

@ -652,6 +652,7 @@ git rerere
if test "$ret" = 0
then
git gc --auto
if test -x "$GIT_DIR"/hooks/post-commit
then
"$GIT_DIR"/hooks/post-commit