diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-09-27 13:43:12 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-04 18:33:45 -0700 |
commit | 0a93fb8a9cc6fa1bf7dba6b498cba3f57f5017a1 (patch) | |
tree | 50daede8ecb40d0cff0c0968cd9d3337b8d520b3 /sideband.c | |
parent | grep --no-index: don't use git standard exclusions (diff) | |
download | tgif-0a93fb8a9cc6fa1bf7dba6b498cba3f57f5017a1.tar.xz |
grep: teach --untracked and --exclude-standard options
In a working tree of a git managed repository, "grep --untracked" would
find the specified patterns from files in untracked files in addition to
its usual behaviour of finding them in the tracked files.
By default, when working with "--no-index" option, "grep" does not pay
attention to .gitignore mechanism. "grep --no-index --exclude-standard"
can be used to tell the command to use .gitignore and stop reporting hits
from files that would be ignored. Also, when working without "--no-index",
"grep" honors .gitignore mechanism, and "grep --no-exclude-standard" can
be used to tell the command to include hits from files that are ignored.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sideband.c')
0 files changed, 0 insertions, 0 deletions