Browse Source

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>
maint
Johannes Schindelin 20 years ago committed by Junio C Hamano
parent
commit
d52920e397
  1. 8
      git-status.sh

8
git-status.sh

@ -45,10 +45,10 @@ then
sed -e ' sed -e '
s/^:// s/^://
h h
s/^[^\t]*// s/^[^ ]*//
s/ /\\ /g s/ /\\ /g
x x
s/\t.*$// s/ .*$//
G G
s/\n/ /' | s/\n/ /' |
report "Updated but not checked in" "will commit" report "Updated but not checked in" "will commit"
@ -71,10 +71,10 @@ git-diff-files |
sed -e ' sed -e '
s/^:// s/^://
h h
s/^[^\t]*// s/^[^ ]*//
s/ /\\ /g s/ /\\ /g
x x
s/\t.*$// s/ .*$//
G G
s/\n/ /' | s/\n/ /' |
report "Changed but not updated" "use git-update-index to mark for commit" report "Changed but not updated" "use git-update-index to mark for commit"

Loading…
Cancel
Save