X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-commit.sh;h=fcb8443bdfa2a87a436ae79471d91c89e944fffd;hb=4340a813d007b592534de664d152d66417dbe809;hp=cb14f0621651d2006b08d1eddf67ab3269df84d0;hpb=6b4790db2432c0bc45586245fecaf04581499f73;p=git.git diff --git a/git-commit.sh b/git-commit.sh index cb14f0621..fcb8443bd 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -25,6 +25,7 @@ refuse_partial () { exit 1 } +TMP_INDEX= THIS_INDEX="$GIT_DIR/index" NEXT_INDEX="$GIT_DIR/next-index$$" rm -f "$NEXT_INDEX" @@ -611,6 +612,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