From: Johannes Schindelin Date: Mon, 10 Oct 2005 20:58:52 +0000 (-0700) Subject: Teach git-status about spaces in file names also on MacOSX X-Git-Tag: v0.99.8d~9^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=d52920e397918fdba0b0ac0bc46633fab807e681;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-status.sh b/git-status.sh index 6e2783a7..fbdd3775 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"