Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-commit: use update-index --stdin, instead of xargs.
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>
git-commit.sh
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
1f7f99d
)
diff --git
a/git-commit.sh
b/git-commit.sh
index 9412840d8f2cc58b19d2ae3406396f2a271135d4..18ad36158dad5a2fc542cb9c1daf65b32ba5b4a3 100755
(executable)
--- a/
git-commit.sh
+++ b/
git-commit.sh
@@
-94,13
+94,13
@@
esac
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