From: Luciano Rocha Date: Tue, 27 May 2008 08:56:12 GMT Subject: Re: git grep and word boundaries Message-ID: <20080527085612.GA31765@bit.office.eurotux.com> In-Reply-To: <483BC7E2.6090804@gmx.net> On Tue, May 27, 2008 at 10:35:46AM +0200, Thomas Volpini wrote: > Hello, > > it seems that git grep doesn't do word boundaries as described: > > $ cat bar > foo bar baz > $ grep "\" * > foo bar baz > $ git grep "\" * > $ git grep -w "\" * > $ git grep -w "bar" * > bar:foo bar baz > $ git grep -E "\" * > $ git grep -E "\bbar\b" * > $ It works here. Did you add the file? $ grep "\" * foo bar baz $ git grep "\" bar:foo bar baz $ git grep "\" * bar:foo bar baz $ git grep \\bbar\\b bar:foo bar baz $ git grep \\bbar\\b * bar:foo bar baz -- Luciano Rocha Eurotux Informática, S.A.