Re: [PATCH] grep: error out if --untracked is used with --cached
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 9, 2021, 20:38 UTC
- Message-ID
- <xmqqtuql0yfp.fsf@gitster.c.googlers.com>
- In-Reply-To
- <CABPp-BFouwiACwwS5mDdgBRF=YK--=NfqZ9r=qkFouEvyJfnGQ@mail.gmail.com>
Elijah Newren <newren@gmail.com> writes:
> ... Even then, I'd be tempted to say that > --untracked is only used in combination with a search of the working > tree.
I tend to agree. Something like
$ git grep -ne POISON maint master next seen -- t/test-lib.sh
would be a useful thing, but I do not see how --untracked would usefully interact with any of these "tracked" contents, be the search from the index or tree.