summaryrefslogtreecommitdiff
path: root/git-status.sh
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2005-10-10 20:58:52 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-10-10 20:58:52 (GMT)
commitd52920e397918fdba0b0ac0bc46633fab807e681 (patch)
treef1dae018530e0c402c89c0f179c3b3d37307e57e /git-status.sh
parent5fb41e8abf29a4c24b8e9e95277cfad349a4d1da (diff)
downloadgit-d52920e397918fdba0b0ac0bc46633fab807e681.zip
git-d52920e397918fdba0b0ac0bc46633fab807e681.tar.gz
git-d52920e397918fdba0b0ac0bc46633fab807e681.tar.bz2
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>
Diffstat (limited to 'git-status.sh')
-rwxr-xr-xgit-status.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/git-status.sh b/git-status.sh
index 6e2783a..fbdd377 100755
--- a/git-status.sh
+++ b/git-status.sh
@@ -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"