grep: do not diagnose misspelt revs with --no-index
authorJeff King <peff@peff.net>
Tue, 14 Feb 2017 06:08:09 +0000 (01:08 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Feb 2017 19:26:37 +0000 (11:26 -0800)
If we are using --no-index, then our arguments cannot be
revs in the first place. Not only is it pointless to
diagnose them, but if we are not in a repository, we should
not be trying to resolve any names.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found