grep: do not diagnose misspelt revs with --no-index
commit73fc7b6b9be495e2cabc546ed240efd77adaa8eb
authorJeff King <peff@peff.net>
Tue, 14 Feb 2017 06:08:09 +0000 (14 01:08 -0500)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Feb 2017 19:26:37 +0000 (14 11:26 -0800)
tree55f960b2d80417ce46b26638e34db7b4f7ab1022
parentd0ffc069331b490ca15418ca7025d5b9024fbad5
grep: do not diagnose misspelt revs with --no-index

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>
builtin/grep.c
t/t7810-grep.sh