diff --git a/git-am.sh b/git-am.sh
index 5599b9358402125e9901cc7dac96d319da16f43c..b02ae6a76fa8265da1ea3d720df9dc29cc5d5519 100755 (executable)
--- a/git-am.sh
+++ b/git-am.sh
resolvemsg= resume=
git_apply_opt=
-while case "$#" in 0) break;; esac
+while test $# != 0
do
case "$1" in
-d=*|--d=*|--do=*|--dot=*|--dote=*|--dotes=*|--dotest=*)
"$GIT_DIR"/hooks/post-applypatch
fi
+ git gc --auto
+
go_next
done