diff options
author | Junio C Hamano <junkio@cox.net> | 2005-09-27 05:13:53 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-28 03:59:45 +0400 |
commit | 148ccbb0384829ab051d6d789b8adf761adf7817 (patch) | |
tree | fbd5dab7b6b303c7128d178e536b2ce8f9894445 /git-commit.sh | |
parent | 1f7f99de841f533b99b80420bbaf44a808ea5b84 (diff) |
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 |