summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 86947d7)
raw | patch | inline | side by side (parent: 86947d7)
author | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 01:08:19 +0000 (18:08 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 17 Aug 2005 19:11:36 +0000 (12:11 -0700) |
When running "git commit" with explicit path arguments, allow it to
take directory name. This makes "git commit Documentation/" to commit
everything that is changed under Documentation/ directory.
Signed-off-by: Junio C Hamano <junkio@cox.net>
take directory name. This makes "git commit Documentation/" to commit
everything that is changed under Documentation/ directory.
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 790f07c08fc3aa893485fa3d252ce1fcb951d0fe..f6cd75f024a0ddb247807086c04eff6d6f8fe6cd 100755 (executable)
--- a/git-commit-script
+++ b/git-commit-script
case "$all" in
t)
git-diff-files --name-only -z |
- xargs -0 git-update-cache -q -- || exit 1 ;;
-esac
-git-update-cache -q --refresh -- "$@" || exit 1
+ xargs -0 git-update-cache -q --
+ ;;
+*)
+ git-diff-files --name-only -z "$@" |
+ xargs -0 git-update-cache -q --
+ ;;
+esac || exit 1
+git-update-cache -q --refresh || exit 1
case "$verify" in
t)