grep: use get_pathspec() correctly
commit7c5f3cc4a5680e23b8aa378ed9b655a1779ee881
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 May 2011 04:34:04 +0000 (9 21:34 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 May 2011 19:11:01 +0000 (10 12:11 -0700)
treeb377208b26e47dbca5a74171b45684f3cdaf0e2c
parentb060ce7de42b357af013909039da3f08a68f3c0b
grep: use get_pathspec() correctly

When there is no remaining string in argv, get_pathspec(prefix, argv)
will return a two-element array that has prefix as the first element,
so there is no need to re-roll that logic in the code that uses
get_pathspec().

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/grep.c