author | Junio C Hamano <gitster@pobox.com> | |
Fri, 15 Jan 2010 20:52:40 +0000 (12:52 -0800) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Fri, 15 Jan 2010 20:54:02 +0000 (12:54 -0800) | ||
commit | 308162372d0aa202ff45743e02253e20a4fac4d7 | |
tree | f4d6de4099ce1a6213b5aadec23177ee26bf5e0c | tree | snapshot |
parent | 7e622650d756955a94f546866eddd51506aa93a3 | commit | diff |
grep --no-index: allow use of "git grep" outside a git repository
Just like some people wanted diff features that are not found in
other people's diff implementations outside of a git repository
and added --no-index mode to the command, this adds --no-index mode
to the "git grep" command.
Also, inside a git repository, --no-index mode allows you to grep
in untracked (but not ignored) files.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Just like some people wanted diff features that are not found in
other people's diff implementations outside of a git repository
and added --no-index mode to the command, this adds --no-index mode
to the "git grep" command.
Also, inside a git repository, --no-index mode allows you to grep
in untracked (but not ignored) files.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-grep.c | diff | blob | history | |
t/t7002-grep.sh | diff | blob | history |