summaryrefslogtreecommitdiff
path: root/git-merge.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2007-09-05 21:59:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-06 07:08:56 (GMT)
commitd4bb43ee273528064192848165f93f8fc3512be1 (patch)
treedaf1efa52ecfd30026e641ce11c2e7c65c32f3e0 /git-merge.sh
parent2c3c4399477533329579ca6b84824ef0b125914f (diff)
downloadgit-d4bb43ee273528064192848165f93f8fc3512be1.zip
git-d4bb43ee273528064192848165f93f8fc3512be1.tar.gz
git-d4bb43ee273528064192848165f93f8fc3512be1.tar.bz2
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-merge.sh')
-rwxr-xr-xgit-merge.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-merge.sh b/git-merge.sh
index 3a01db0..697bec2 100755
--- a/git-merge.sh
+++ b/git-merge.sh
@@ -82,6 +82,7 @@ finish () {
;;
*)
git update-ref -m "$rlogm" HEAD "$1" "$head" || exit 1
+ git gc --auto
;;
esac
;;