提交 148ccbb0 编写于 作者: J Junio C Hamano

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: NJunio C Hamano <junkio@cox.net>
上级 1f7f99de
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册