summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 1f7f99d)
raw | patch | inline | side by side (parent: 1f7f99d)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 27 Sep 2005 01:13:53 +0000 (18:13 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 27 Sep 2005 23:59:45 +0000 (16:59 -0700) |
Now update-index supports '-z --stdin', we do not have to rely on
platform xargs to support -0 option.
Signed-off-by: Junio C Hamano <junkio@cox.net>
platform xargs to support -0 option.
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 9412840d8f2cc58b19d2ae3406396f2a271135d4..18ad36158dad5a2fc542cb9c1daf65b32ba5b4a3 100755 (executable)
--- a/git-commit.sh
+++ b/git-commit.sh
case "$all,$#" in
t,*)
git-diff-files --name-only -z |
- xargs -0 git-update-index -q --remove --
+ git-update-index --remove -z --stdin
;;
,0)
;;
*)
git-diff-files --name-only -z "$@" |
- xargs -0 git-update-index -q --remove --
+ git-update-index --remove -z --stdin
;;
esac || exit 1
git-update-index -q --refresh || exit 1