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>maint
parent
5fb41e8abf
commit
d52920e397
|
@ -45,10 +45,10 @@ then
|
||||||
sed -e '
|
sed -e '
|
||||||
s/^://
|
s/^://
|
||||||
h
|
h
|
||||||
s/^[^\t]*//
|
s/^[^ ]*//
|
||||||
s/ /\\ /g
|
s/ /\\ /g
|
||||||
x
|
x
|
||||||
s/\t.*$//
|
s/ .*$//
|
||||||
G
|
G
|
||||||
s/\n/ /' |
|
s/\n/ /' |
|
||||||
report "Updated but not checked in" "will commit"
|
report "Updated but not checked in" "will commit"
|
||||||
|
@ -71,10 +71,10 @@ git-diff-files |
|
||||||
sed -e '
|
sed -e '
|
||||||
s/^://
|
s/^://
|
||||||
h
|
h
|
||||||
s/^[^\t]*//
|
s/^[^ ]*//
|
||||||
s/ /\\ /g
|
s/ /\\ /g
|
||||||
x
|
x
|
||||||
s/\t.*$//
|
s/ .*$//
|
||||||
G
|
G
|
||||||
s/\n/ /' |
|
s/\n/ /' |
|
||||||
report "Changed but not updated" "use git-update-index to mark for commit"
|
report "Changed but not updated" "use git-update-index to mark for commit"
|
||||||
|
|
Loading…
Reference in New Issue