Teach git-status about spaces in file names also on MacOSX
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 10 Oct 2005 20:58:52 +0000 (13:58 -0700)
committerJunio C Hamano <junkio@cox.net>
Mon, 10 Oct 2005 20:58:52 +0000 (13:58 -0700)
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>
git-status.sh

index 6e2783a..fbdd377 100755 (executable)
@@ -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"