DORMANTno replies

[PATCH] Teach git-status about spaces in file names also on MacOSX

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:42:08
Subsystem: the rest · Maintainer: Linus Torvalds

Not that I really understand what Kai's original patch really does, but on
my iBook, sed does not understand '\t' and consequently cuts of every file
name at the first "t" (or backslash...).

Signed-off-by: Johannes Schindelin <redacted>

---

 git-status.sh |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

applies-to: b7dbad9daef37a781daa3942e9258797f23fa635
ab97728bc4bebd99406cefa55de8530b1fe35620
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"
---
0.99.8.GIT
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help