git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 10, 2005, 20:13 UTC
Message-ID
<Pine.LNX.4.63.0510102212230.8106@wbgn013.biozentrum.uni-wuerzburg.de>

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 <Johannes.Schindelin@gmx.de>
---
 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
Next: Junio C Hamano
Message 1 of 3 in “Teach git-status about spaces in file names also on MacOSX”
  1. Teach git-status about spaces in file names also on MacOSXJohannes Schindelin, Oct 10, 2005
  2. Junio C HamanoOct 10, 2005
  3. Johannes SchindelinOct 10, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.