summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a2f2bb)
raw | patch | inline | side by side (parent: 3a2f2bb)
author | Junio C Hamano <junkio@cox.net> | |
Fri, 25 Nov 2005 21:33:14 +0000 (13:33 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 25 Nov 2005 21:33:14 +0000 (13:33 -0800) |
When you want to create a partial commit, giving -a by mistake
would ignore the given path. Prevent it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
would ignore the given path. Prevent it.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit.sh | patch | blob | history |
diff --git a/git-commit.sh b/git-commit.sh
index 41955e8e64da2d2e04ab4a2890c673a39fc20ffe..27aea80a43acf7ee7994b53ef05828edd84f3f73 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
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)
;;
*)