[PATCH] Assorted changes to glossary
[git.git] / git-commit-script
index 790f07c..15d0391 100755 (executable)
@@ -85,12 +85,19 @@ tt*)
   die "Only one of -c/-C/-F/-m can be used." ;;
 esac
 
-case "$all" in
-t)
+case "$all,$#" in
+t,*)
        git-diff-files --name-only -z |
-       xargs -0 git-update-cache -q -- || exit 1 ;;
-esac
-git-update-cache -q --refresh -- "$@" || exit 1
+       xargs -0 git-update-cache -q --
+       ;;
+,0)
+       ;;
+*)
+       git-diff-files --name-only -z "$@" |
+       xargs -0 git-update-cache -q --
+       ;;
+esac || exit 1
+git-update-cache -q --refresh || exit 1
 
 case "$verify" in
 t)