Re: "git grep --no-index" doesn't do what it says on the tin?
- From
Antoine Pelisse <apelisse@gmail.com>
- Date
- May 15, 2013, 06:54 UTC
- Message-ID
- <CALWbr2wq7QtTXp=tDn27g6_XQjou9FfCvPkXHxmxqws4nTUwxA@mail.gmail.com>
- In-Reply-To
- <CAEY4ZpP8txhCCmw-Ck7_rQL+Xn4bJw-RgVa7iDaHzQ6mcS5oLQ@mail.gmail.com>
On Wed, May 15, 2013 at 7:32 AM, Nazri Ramliy <ayiehere@gmail.com> wrote:
Show 10 quoted lines
> Hi, > > From "git help grep": > > --no-index > Search files in the current directory that is not managed by Git. > > --untracked > In addition to searching in the tracked files in the working tree, > search also in untracked files.
The difference is in the "not managed by Git". Inside a repository, they will do the same thing. But only the first can work outside a repository.
Cheers, Antoine