Teach git-status about spaces in file names also on MacOSX
[gitweb.git] / git-status.sh
index 6e2783a7b4df7ec77aa4d472e84db323f65ecc83..fbdd377539eea2c4521a2df2d37ff06b80567664 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"