aboutsummaryrefslogtreecommitdiff
path: root/git-am.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-05 14:59:59 -0700
committerJunio C Hamano <gitster@pobox.com>2007-09-06 00:08:56 -0700
commitd4bb43ee273528064192848165f93f8fc3512be1 (patch)
treedaf1efa52ecfd30026e641ce11c2e7c65c32f3e0 /git-am.sh
parent2c3c4399477533329579ca6b84824ef0b125914f (diff)
downloadgit-d4bb43ee273528064192848165f93f8fc3512be1.tar.gz
git-d4bb43ee273528064192848165f93f8fc3512be1.tar.xz
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>
Diffstat (limited to 'git-am.sh')
-rwxr-xr-xgit-am.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/git-am.sh b/git-am.sh
index 6809aa07f..4db4701c9 100755
--- a/git-am.sh
+++ b/git-am.sh
@@ -466,6 +466,8 @@ do
"$GIT_DIR"/hooks/post-applypatch
fi
+ git gc --auto
+
go_next
done