From: Michael Stefaniuc Date: Fri, 4 Jan 2008 18:59:26 +0000 (+0100) Subject: git-am: Run git gc only once and not for every patch. X-Git-Tag: v1.5.4-rc3~44 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e0cd252eb0ba6453acd64762625b004aa4cc162b;p=git.git git-am: Run git gc only once and not for every patch. With "too many unreachable loose objects" git gc --auto will always trigger. This clutters the output of git am and thus git rebase. Signed-off-by: Michael Stefaniuc Signed-off-by: Junio C Hamano --- diff --git a/git-am.sh b/git-am.sh index 65c634f77..5f0f241ad 100755 --- a/git-am.sh +++ b/git-am.sh @@ -469,9 +469,9 @@ do "$GIT_DIR"/hooks/post-applypatch fi - git gc --auto - go_next done +git gc --auto + rm -fr "$dotest"