Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Do linear-time/space rename logic for exact renames
[gitweb.git]
/
git-commit.sh
diff --git
a/git-commit.sh
b/git-commit.sh
index cb14f0621651d2006b08d1eddf67ab3269df84d0..fcb8443bdfa2a87a436ae79471d91c89e944fffd 100755
(executable)
--- 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