grep --no-index: honor pathspecs correctly
authorJunio C Hamano <gitster@pobox.com>
Wed, 16 Feb 2011 22:39:00 +0000 (14:39 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Feb 2011 22:39:00 +0000 (14:39 -0800)
commit9d8b831b36ca936f05e381e0f7f7a4b0d76114ee
treef2bd7913debe8d1690048b5d229e34e66c21b50b
parentf577b92fe75643228674c0dcb2a4747587cf541d
grep --no-index: honor pathspecs correctly

Even though fill_directory() takes pathspec, the returned set of paths
is not guaranteed to be free of paths outside the pathspec. Perhaps we
would need to change that, but the current API is that the caller needs
to further filter them.

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