* [mingw port] git plumbing piping with CR/NL
@ 2007-06-01 18:23 Nguyen Thai Ngoc Duy
2007-06-01 23:18 ` Alex Riesen
0 siblings, 1 reply; 6+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2007-06-01 18:23 UTC (permalink / raw)
To: Git Mailing List, Johannes Sixt
Hi,
I haven't had time looking at the code yet. I report here so that I
can free my memory for other things. I made a command like this:
$ git ls-tree -r HEAD|grep blah.cc|git update-index --index-info
and the output of git-status was:
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# new file: path/to/blah.cc\r
#
# Changed but not updated:
# (use "git add/rm <file>..." to update what will be committed)
#
# deleted: path/to/blah.cc\r
...
$ git version
git version 1.5.2.651.g80e39-dirty (if the commit isn't in the master
branch, it is based on master branch)
Apparently git should ignore \r at the end of the path. Will look at it later.
--
Duy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mingw port] git plumbing piping with CR/NL
2007-06-01 18:23 [mingw port] git plumbing piping with CR/NL Nguyen Thai Ngoc Duy
@ 2007-06-01 23:18 ` Alex Riesen
2007-06-01 23:56 ` Nguyen Thai Ngoc Duy
2007-06-02 1:31 ` Sam Vilain
0 siblings, 2 replies; 6+ messages in thread
From: Alex Riesen @ 2007-06-01 23:18 UTC (permalink / raw)
To: Nguyen Thai Ngoc Duy; +Cc: Git Mailing List, Johannes Sixt
Nguyen Thai Ngoc Duy, Fri, Jun 01, 2007 20:23:24 +0200:
> Hi,
>
> I haven't had time looking at the code yet. I report here so that I
> can free my memory for other things. I made a command like this:
>
> $ git ls-tree -r HEAD|grep blah.cc|git update-index --index-info
>
> and the output of git-status was:
>
> $ git status
> # On branch master
> # Changes to be committed:
> # (use "git reset HEAD <file>..." to unstage)
> #
> # new file: path/to/blah.cc\r
> #
> # Changed but not updated:
> # (use "git add/rm <file>..." to update what will be committed)
> #
> # deleted: path/to/blah.cc\r
> ...
> $ git version
> git version 1.5.2.651.g80e39-dirty (if the commit isn't in the master
> branch, it is based on master branch)
>
> Apparently git should ignore \r at the end of the path. ...
Why should it? \r is a valid character in filenames almost everywhere
(except for the some proprietary OSes, as usual).
Why does your grep _alters_ the input, instead of filtering it, btw?
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mingw port] git plumbing piping with CR/NL
2007-06-01 23:18 ` Alex Riesen
@ 2007-06-01 23:56 ` Nguyen Thai Ngoc Duy
2007-06-02 1:31 ` Johannes Schindelin
2007-06-02 23:09 ` Alex Riesen
2007-06-02 1:31 ` Sam Vilain
1 sibling, 2 replies; 6+ messages in thread
From: Nguyen Thai Ngoc Duy @ 2007-06-01 23:56 UTC (permalink / raw)
To: Alex Riesen; +Cc: Git Mailing List, Johannes Sixt
On 6/1/07, Alex Riesen <raa.lkml@gmail.com> wrote:
> Nguyen Thai Ngoc Duy, Fri, Jun 01, 2007 20:23:24 +0200:
> > Hi,
> >
> > I haven't had time looking at the code yet. I report here so that I
> > can free my memory for other things. I made a command like this:
> >
> > $ git ls-tree -r HEAD|grep blah.cc|git update-index --index-info
> >
> > and the output of git-status was:
> >
> > $ git status
> > # On branch master
> > # Changes to be committed:
> > # (use "git reset HEAD <file>..." to unstage)
> > #
> > # new file: path/to/blah.cc\r
> > #
> > # Changed but not updated:
> > # (use "git add/rm <file>..." to update what will be committed)
> > #
> > # deleted: path/to/blah.cc\r
> > ...
> > $ git version
> > git version 1.5.2.651.g80e39-dirty (if the commit isn't in the master
> > branch, it is based on master branch)
> >
> > Apparently git should ignore \r at the end of the path. ...
>
> Why should it? \r is a valid character in filenames almost everywhere
> (except for the some proprietary OSes, as usual).
Right. Although I doubt usage of \r and other special characters in filenames.
> Why does your grep _alters_ the input, instead of filtering it, btw?
I have no idea. It's grep from MKS Toolkit FYI.
--
Duy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mingw port] git plumbing piping with CR/NL
2007-06-01 23:56 ` Nguyen Thai Ngoc Duy
@ 2007-06-02 1:31 ` Johannes Schindelin
2007-06-02 23:09 ` Alex Riesen
1 sibling, 0 replies; 6+ messages in thread
From: Johannes Schindelin @ 2007-06-02 1:31 UTC (permalink / raw)
To: Nguyen Thai Ngoc Duy; +Cc: Alex Riesen, Git Mailing List, Johannes Sixt
Hi,
On Fri, 1 Jun 2007, Nguyen Thai Ngoc Duy wrote:
> On 6/1/07, Alex Riesen <raa.lkml@gmail.com> wrote:
>
> > Why does your grep _alters_ the input, instead of filtering it, btw?
>
> I have no idea. It's grep from MKS Toolkit FYI.
Your subject says "[mingw port]". You should have mentioned that you use a
mixed setup, as the mingw port still depends on msys for the scripts.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mingw port] git plumbing piping with CR/NL
2007-06-01 23:18 ` Alex Riesen
2007-06-01 23:56 ` Nguyen Thai Ngoc Duy
@ 2007-06-02 1:31 ` Sam Vilain
1 sibling, 0 replies; 6+ messages in thread
From: Sam Vilain @ 2007-06-02 1:31 UTC (permalink / raw)
To: Alex Riesen; +Cc: Nguyen Thai Ngoc Duy, Git Mailing List, Johannes Sixt
Alex Riesen wrote:
> > Apparently git should ignore \r at the end of the path. ...
> Why should it? \r is a valid character in filenames almost everywhere
> (except for the some proprietary OSes, as usual).
>
So is \n!
Sam.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [mingw port] git plumbing piping with CR/NL
2007-06-01 23:56 ` Nguyen Thai Ngoc Duy
2007-06-02 1:31 ` Johannes Schindelin
@ 2007-06-02 23:09 ` Alex Riesen
1 sibling, 0 replies; 6+ messages in thread
From: Alex Riesen @ 2007-06-02 23:09 UTC (permalink / raw)
To: Nguyen Thai Ngoc Duy; +Cc: Git Mailing List, Johannes Sixt
Nguyen Thai Ngoc Duy, Sat, Jun 02, 2007 01:56:54 +0200:
> >Why does your grep _alters_ the input, instead of filtering it, btw?
>
> I have no idea. It's grep from MKS Toolkit FYI.
>
Looks like it is buggy
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-06-02 23:09 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-01 18:23 [mingw port] git plumbing piping with CR/NL Nguyen Thai Ngoc Duy
2007-06-01 23:18 ` Alex Riesen
2007-06-01 23:56 ` Nguyen Thai Ngoc Duy
2007-06-02 1:31 ` Johannes Schindelin
2007-06-02 23:09 ` Alex Riesen
2007-06-02 1:31 ` Sam Vilain
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).