1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-06-24 08:17:19 +02:00

Teach git-status about spaces in file names also on MacOSX

Not all sed understands '\t' and consequently cuts off every
file name at the first "t" (or backslash...).

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Johannes Schindelin 2005-10-10 13:58:52 -07:00 committed by Junio C Hamano
parent 5fb41e8abf
commit d52920e397

View File

@ -45,10 +45,10 @@ then
sed -e '
s/^://
h
s/^[^\t]*//
s/^[^ ]*//
s/ /\\ /g
x
s/\t.*$//
s/ .*$//
G
s/\n/ /' |
report "Updated but not checked in" "will commit"
@ -71,10 +71,10 @@ git-diff-files |
sed -e '
s/^://
h
s/^[^\t]*//
s/^[^ ]*//
s/ /\\ /g
x
s/\t.*$//
s/ .*$//
G
s/\n/ /' |
report "Changed but not updated" "use git-update-index to mark for commit"