Skip to content

Commit d52920e

Browse files
dschoJunio C Hamano
authored andcommitted
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>
1 parent 5fb41e8 commit d52920e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

git-status.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ then
4545
sed -e '
4646
s/^://
4747
h
48-
s/^[^\t]*//
48+
s/^[^ ]*//
4949
s/ /\\ /g
5050
x
51-
s/\t.*$//
51+
s/ .*$//
5252
G
5353
s/\n/ /' |
5454
report "Updated but not checked in" "will commit"
@@ -71,10 +71,10 @@ git-diff-files |
7171
sed -e '
7272
s/^://
7373
h
74-
s/^[^\t]*//
74+
s/^[^ ]*//
7575
s/ /\\ /g
7676
x
77-
s/\t.*$//
77+
s/ .*$//
7878
G
7979
s/\n/ /' |
8080
report "Changed but not updated" "use git-update-index to mark for commit"

0 commit comments

Comments
 (0)