diff options
| -rwxr-xr-x | git-am.sh | 2 | ||||
| -rwxr-xr-x | git-commit.sh | 1 | ||||
| -rwxr-xr-x | git-merge.sh | 1 | ||||
| -rwxr-xr-x | git-rebase--interactive.sh | 2 | 
4 files changed, 6 insertions, 0 deletions
@@ -466,6 +466,8 @@ do  		"$GIT_DIR"/hooks/post-applypatch  	fi +	git gc --auto +  	go_next  done diff --git a/git-commit.sh b/git-commit.sh index 1d04f1ff31..d22d35eadc 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -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 diff --git a/git-merge.sh b/git-merge.sh index 3a01db0d75..697bec24fa 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  		;; diff --git a/git-rebase--interactive.sh b/git-rebase--interactive.sh index abc2b1c3e0..8258b7adf9 100755 --- a/git-rebase--interactive.sh +++ b/git-rebase--interactive.sh @@ -307,6 +307,8 @@ do_next () {  	rm -rf "$DOTEST" &&  	warn "Successfully rebased and updated $HEADNAME." +	git gc --auto +  	exit  }  | 
