@matheusbsbs / matheus-bagliano / commits / d52920e397
Fork 0

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>

Johannes Schindelin committed Oct 10, 2005 at 13:58 UTC d52920e397918fdba0b0ac0bc46633fab807e681
1 file changed +4 -4
git-status.sh
+4 -4
@@ -45,10 +45,10 @@ then
45 sed -e '
46 s/^://
47 h
48 - s/^[^\t]*//
48 + s/^[^ ]*//
49 s/ /\\ /g
50 x
51 - s/\t.*$//
51 + s/ .*$//
52 G
53 s/\n/ /' |
54 report "Updated but not checked in" "will commit"
@@ -71,10 +71,10 @@ git-diff-files |
71 sed -e '
72 s/^://
73 h
74 - s/^[^\t]*//
74 + s/^[^ ]*//
75 s/ /\\ /g
76 x
77 - s/\t.*$//
77 + s/ .*$//
78 G
79 s/\n/ /' |
80 report "Changed but not updated" "use git-update-index to mark for commit"