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>
This commit is contained in:
@ -94,13 +94,13 @@ esac
|
|||||||
case "$all,$#" in
|
case "$all,$#" in
|
||||||
t,*)
|
t,*)
|
||||||
git-diff-files --name-only -z |
|
git-diff-files --name-only -z |
|
||||||
xargs -0 git-update-index -q --remove --
|
git-update-index --remove -z --stdin
|
||||||
;;
|
;;
|
||||||
,0)
|
,0)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
git-diff-files --name-only -z "$@" |
|
git-diff-files --name-only -z "$@" |
|
||||||
xargs -0 git-update-index -q --remove --
|
git-update-index --remove -z --stdin
|
||||||
;;
|
;;
|
||||||
esac || exit 1
|
esac || exit 1
|
||||||
git-update-index -q --refresh || exit 1
|
git-update-index -q --refresh || exit 1
|
||||||
|
Reference in New Issue
Block a user