Skip to content

Commit

Permalink
Teach git-status about spaces in file names also on MacOSX
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Johannes Schindelin authored and Junio C Hamano committed Oct 10, 2005
1 parent 5fb41e8 commit d52920e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit d52920e

Please sign in to comment.