summaryrefslogtreecommitdiff
path: root/git-commit-script
diff options
context:
space:
mode:
Diffstat (limited to 'git-commit-script')
-rwxr-xr-xgit-commit-script6
1 files changed, 4 insertions, 2 deletions
diff --git a/git-commit-script b/git-commit-script
index f6cd75f..15d0391 100755
--- a/git-commit-script
+++ b/git-commit-script
@@ -85,11 +85,13 @@ 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 --
;;
+,0)
+ ;;
*)
git-diff-files --name-only -z "$@" |
xargs -0 git-update-cache -q --