summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cfb0af1)
raw | patch | inline | side by side (parent: cfb0af1)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 22:17:03 +0000 (15:17 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 22:17:03 +0000 (15:17 -0700) |
The earlier one to grab output from diff-files --name-only has a grave
bug that when no paths are given it ended up doing the equivalent of
"git-commit --all", which was not what I intended.
Signed-off-by: Junio C Hamano <junkio@cox.net>
bug that when no paths are given it ended up doing the equivalent of
"git-commit --all", which was not what I intended.
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-commit-script | patch | blob | history |
diff --git a/git-commit-script b/git-commit-script
index f6cd75f024a0ddb247807086c04eff6d6f8fe6cd..15d03913d5eca6c7eb0eeb146e3e6cf6ba7d1d56 100755 (executable)
--- a/git-commit-script
+++ b/git-commit-script
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 --