diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-26 18:13:53 -0700 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-27 16:59:45 -0700 |
commit | 148ccbb0384829ab051d6d789b8adf761adf7817 (patch) | |
tree | fbd5dab7b6b303c7128d178e536b2ce8f9894445 /git-commit.sh | |
parent | 1f7f99de841f533b99b80420bbaf44a808ea5b84 (diff) | |
download | git-148ccbb0384829ab051d6d789b8adf761adf7817.tar.gz |
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-x | git-commit.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git-commit.sh b/git-commit.sh index 9412840d8f..18ad36158d 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 |