From: Junio C Hamano Date: Tue, 27 Sep 2005 01:13:53 +0000 (-0700) Subject: git-commit: use update-index --stdin, instead of xargs. X-Git-Tag: v0.99.8~39 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=148ccbb0384829ab051d6d789b8adf761adf7817;p=git.git 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 --- diff --git a/git-commit.sh b/git-commit.sh index 9412840d8..18ad36158 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