@matheusbsbs / matheus-bagliano / commits / cf0d720b7f
Fork 0

Update git-grep documentation

Documentation/git-grep.txt: Document -F/--fixed-strings to search for non-regexp patterns. Document -I to not search binary files. Document -<num> as a shortcut for -C<num>. Signed-off-by: Andrew Ruder <andy@aeruder.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Andrew Ruder committed Apr 26, 2007 at 23:58 UTC cf0d720b7f861e90b9cadfc989d5b57c4b1ff531
1 file changed +15 -4
Documentation/git-grep.txt
+15 -4
@@ -12,12 +12,13 @@ SYNOPSIS
12 'git-grep' [--cached]
13 [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
14 [-v | --invert-match] [-h|-H] [--full-name]
15 - [-E | --extended-regexp] [-G | --basic-regexp] [-F | --fixed-strings]
16 - [-n] [-l | --files-with-matches] [-L | --files-without-match]
15 + [-E | --extended-regexp] [-G | --basic-regexp]
16 + [-F | --fixed-strings] [-n]
17 + [-l | --files-with-matches] [-L | --files-without-match]
18 [-c | --count] [--all-match]
19 [-A <post-context>] [-B <pre-context>] [-C <context>]
19 - [-f <file>] [-e] <pattern> [--and|--or|--not|(|)|-e <pattern>...]
20 - [<tree>...]
20 + [-f <file>] [-e] <pattern>
21 + [--and|--or|--not|(|)|-e <pattern>...] [<tree>...]
22 [--] [<path>...]
23
24 DESCRIPTION
@@ -39,6 +40,9 @@ OPTIONS
40 Ignore case differences between the patterns and the
41 files.
42
43 +-I::
44 + Don't match the pattern in binary files.
45 +
46 -w | --word-regexp::
47 Match the pattern only at word boundary (either begin at the
48 beginning of a line, or preceded by a non-word character; end at
@@ -64,6 +68,10 @@ OPTIONS
68 Use POSIX extended/basic regexp for patterns. Default
69 is to use basic regexp.
70
71 +-F | --fixed-strings::
72 + Use fixed strings for patterns (don't interpret pattern
73 + as a regex).
74 +
75 -n::
76 Prefix the line number to matching lines.
77
@@ -81,6 +89,9 @@ OPTIONS
89 line containing `--` between contiguous groups of
90 matches.
91
92 +-<num>::
93 + A shortcut for specifying -C<num>.
94 +
95 -f <file>::
96 Read patterns from <file>, one per line.
97