]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-commit: use update-index --stdin, instead of xargs.
authorJunio C Hamano <junkio@cox.net>
Tue, 27 Sep 2005 01:13:53 +0000 (18:13 -0700)
committerJunio 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

index 9412840d8f2cc58b19d2ae3406396f2a271135d4..18ad36158dad5a2fc542cb9c1daf65b32ba5b4a3 100755 (executable)
@@ -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