@matheusbsbs / matheus-bagliano / commits / 148ccbb038
Fork 0

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>

Junio C Hamano committed Sep 26, 2005 at 18:13 UTC 148ccbb0384829ab051d6d789b8adf761adf7817
1 file changed +2 -2
git-commit.sh
+2 -2
@@ -94,13 +94,13 @@ esac
94 case "$all,$#" in
95 t,*)
96 git-diff-files --name-only -z |
97 - xargs -0 git-update-index -q --remove --
97 + git-update-index --remove -z --stdin
98 ;;
99 ,0)
100 ;;
101 *)
102 git-diff-files --name-only -z "$@" |
103 - xargs -0 git-update-index -q --remove --
103 + git-update-index --remove -z --stdin
104 ;;
105 esac || exit 1
106 git-update-index -q --refresh || exit 1