diff options
-rwxr-xr-x | git-commit-script | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/git-commit-script b/git-commit-script index f6cd75f024..15d03913d5 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 -- |