From: Johan Herland Date: Thu, 18 Sep 2008 16:18:42 GMT Subject: Re: How to supply "raw" bytes to git grep? Message-ID: <200809181818.42745.johan@herland.net> In-Reply-To: <8c9a060809180846j25e4eb44h291b017aa01bbe36@mail.gmail.com> On Thursday 18 September 2008, Jacob Helwig wrote: > On Thu, Sep 18, 2008 at 08:28, Johan Herland wrote: > > I wanted to list all text files in my repo which contain carriage > > returns, so I tried the following command-line: > > > > git grep --cached -I -l -e > > > > where is some magic incantation that I've yet to figure out. > > I've tried all the obvious cases (\r, 0x0d, \015, etc.), but none > > of them seem to DWIM... > > Inserting a literal carriage return seems to do the trick for me, in > bash. > > git grep --cached -I -l -e Thanks. That's exactly the incantation I was looking for. ;) ...Johan -- Johan Herland, www.herland.net