Re: [PATCH 8/7] grep: treat revs the same for --untracked as for --no-index

2017-02-14 Thread Junio C Hamano
Jeff King writes: > ... > The rationale for doing this with --no-index is that it is > meant to be used outside a repository, and so parsing revs > at all does not make sense. > > This patch gives --untracked the same treatment. While it > _is_ meant to be used in a repository, it

[PATCH 8/7] grep: treat revs the same for --untracked as for --no-index

2017-02-14 Thread Jeff King
On Tue, Feb 14, 2017 at 10:19:56AM -0800, Jonathan Tan wrote: > > I wasn't sure if we wanted to treat "untracked" in the same way. > > Certainly we can catch the error here for the seen_dashdash case, but is > > it also the case that: > > > > echo content >master > > git grep --untracked