X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=git-commit.sh;h=27aea80a43acf7ee7994b53ef05828edd84f3f73;hb=e8cc80d03934cc607e3a4d89a05350c238dbf9c5;hp=41955e8e64da2d2e04ab4a2890c673a39fc20ffe;hpb=3eeb419968c1f8f0a762a7127db770e9d9c8037d;p=git.git diff --git a/git-commit.sh b/git-commit.sh index 41955e8e..27aea80a 100755 --- a/git-commit.sh +++ b/git-commit.sh @@ -92,10 +92,13 @@ tt*) esac case "$all,$#" in -t,*) +t,0) git-diff-files --name-only -z | git-update-index --remove -z --stdin ;; +t,*) + die "Cannot use -a and explicit files at the same time." + ;; ,0) ;; *)