git grep and word boundaries
- From
- Thomas Volpini <tvolpini@gmx.net>
- Date
- May 27, 2008, 08:35 UTC
- Message-ID
- <483BC7E2.6090804@gmx.net>
Hello,
it seems that git grep doesn't do word boundaries as described:
$ cat bar foo bar baz $ grep "\<bar\>" * foo bar baz $ git grep "\<bar\>" * $ git grep -w "\<bar\>" * $ git grep -w "bar" * bar:foo bar baz $ git grep -E "\<bar\>" * $ git grep -E "\bbar\b" * $
thanks, Thomas