git grep --no-index and absolute paths don't work?
- From
Bert Wesarg <bert.wesarg@googlemail.com>
- Date
- Oct 21, 2011, 06:34 UTC
- Message-ID
- <CAKPyHN138OZRt_3PT5ChuTpSEuOdybnyAj8Baqr=3OD=y==jgw@mail.gmail.com>
Hi,
I'm currently totally confused, that a
git grep --no-index foo /usr/include
does not work. I know that the documentation says "in the current directory" for the --no-index flag. But this does not work ether:
cd ~; git grep --no-index foo ~/.bashrc
They all fail with 'is outside repository'. Which is for itself vary misleading, because I intentionally said --no-index.
Any input is appreciate.
Thanks.
Bert