summaryrefslogtreecommitdiff
path: root/git-commit.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-09-27 01:13:53 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-09-27 23:59:45 (GMT)
commit148ccbb0384829ab051d6d789b8adf761adf7817 (patch)
treefbd5dab7b6b303c7128d178e536b2ce8f9894445 /git-commit.sh
parent1f7f99de841f533b99b80420bbaf44a808ea5b84 (diff)
downloadgit-148ccbb0384829ab051d6d789b8adf761adf7817.zip
git-148ccbb0384829ab051d6d789b8adf761adf7817.tar.gz
git-148ccbb0384829ab051d6d789b8adf761adf7817.tar.bz2
git-commit: use update-index --stdin, instead of xargs.
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>
Diffstat (limited to 'git-commit.sh')
-rwxr-xr-xgit-commit.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-commit.sh b/git-commit.sh
index 9412840..18ad361 100755
--- 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