* [PATCH] Teach git-status about spaces in file names also on MacOSX
@ 2005-10-10 20:13 Johannes Schindelin
2005-10-10 20:35 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Johannes Schindelin @ 2005-10-10 20:13 UTC (permalink / raw)
To: git, junkio
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] Teach git-status about spaces in file names also on MacOSX
2005-10-10 20:13 [PATCH] Teach git-status about spaces in file names also on MacOSX Johannes Schindelin
@ 2005-10-10 20:35 ` Junio C Hamano
2005-10-10 20:48 ` Johannes Schindelin
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2005-10-10 20:35 UTC (permalink / raw)
To: Johannes Schindelin; +Cc: git, junkio
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 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...).
Thanks; not Kai's fault but mine.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] Teach git-status about spaces in file names also on MacOSX
2005-10-10 20:35 ` Junio C Hamano
@ 2005-10-10 20:48 ` Johannes Schindelin
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2005-10-10 20:48 UTC (permalink / raw)
To: Junio C Hamano; +Cc: git
Hi,
On Mon, 10 Oct 2005, Junio C Hamano wrote:
> Thanks; not Kai's fault but mine.
By saying that I do not really understand Kai's patch, I wanted to make
clear that maybe I got that fix all wrong ;-)
Ciao,
Dscho
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-10 20:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-10 20:13 [PATCH] Teach git-status about spaces in file names also on MacOSX Johannes Schindelin
2005-10-10 20:35 ` Junio C Hamano
2005-10-10 20:48 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).