Re: git grep broken in Fedora 21 update?

2015-09-04 Thread Jeff King
On Fri, Sep 04, 2015 at 12:04:38AM +, Rustad, Mark D wrote: > You can see that git grep missed the line in ixgbe_x550.c that had two hits > on the string. > > This was with git 2.1.0 in Fedora 21. I use git grep a lot and never > noticed a problem before. I just updated my Fedora 21 system

Re: git grep broken in Fedora 21 update?

2015-09-04 Thread Michael J Gruber
Jacob Keller venit, vidit, dixit 04.09.2015 06:55: > On Thu, Sep 3, 2015 at 5:04 PM, Rustad, Mark D > wrote: >> I just found a case where grep and git grep yield different results. Inside >> the ixgbe directory of the Linux kernel I did: >> >> $ grep enter_lplu *.[ch]

Re: git grep broken in Fedora 21 update?

2015-09-04 Thread Rustad, Mark D
> On Sep 4, 2015, at 7:03 AM, Jeff King wrote: > > Is it possible that git _is_ producing the hit, but it is getting eaten > by the pager or something like that? Does "git --no-pager grep > enter_lplu" produce the same results? Well what do you know. Adding --no-pager gave me the

git grep broken in Fedora 21 update?

2015-09-03 Thread Rustad, Mark D
I just found a case where grep and git grep yield different results. Inside the ixgbe directory of the Linux kernel I did: $ grep enter_lplu *.[ch] And got the following: ixgbe_main.c: if (adapter->hw.phy.ops.enter_lplu) { ixgbe_main.c: adapter->hw.phy.ops.enter_lplu(>hw);

Re: git grep broken in Fedora 21 update?

2015-09-03 Thread Jacob Keller
On Thu, Sep 3, 2015 at 5:04 PM, Rustad, Mark D wrote: > I just found a case where grep and git grep yield different results. Inside > the ixgbe directory of the Linux kernel I did: > > $ grep enter_lplu *.[ch] > > And got the following: > > ixgbe_main.c: if