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 <mstefani@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Michael Stefaniuc committed
Jan 4, 2008 at 19:59 UTC
e0cd252eb0ba6453acd64762625b004aa4cc162b
1 file changed
+2
-2
git-am.sh
+2
-2
@@ -469,9 +469,9 @@ do
469
"$GIT_DIR"/hooks/post-applypatch
470
fi
471
472
- git gc --auto
473
-
472
go_next
473
done
474
475
+git gc --auto
476
+
477
rm -fr "$dotest"