From: Junio C Hamano Date: Tue, 14 Feb 2017 21:58:59 GMT Subject: Re: [PATCH 8/7] grep: treat revs the same for --untracked as for --no-index Message-ID: In-Reply-To: <20170214215436.kqca4c7gv2kwevw7@sigill.intra.peff.net> 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 is explicitly > about grepping the non-repository contents. Telling the user > "we found a rev, but you are not allowed to use revs" is > not really helpful compared to "we treated your argument as > a path, and could not find it". Yup, both sounds very sensible. Thanks.