Skip to content

Commit ec2537b

Browse files
MarkLodatogitster
authored andcommitted
grep docs: --cached and <tree>... are incompatible
In the synopsis for git-grep(1), show that --cached and <tree>... cannot be used together. Signed-off-by: Mark Lodato <lodatom@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent bfb8306 commit ec2537b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Documentation/git-grep.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ git-grep - Print lines matching a pattern
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git grep' [--cached]
13-
[-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
12+
'git grep' [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
1413
[-v | --invert-match] [-h|-H] [--full-name]
1514
[-E | --extended-regexp] [-G | --basic-regexp]
1615
[-F | --fixed-strings] [-n]
@@ -21,7 +20,8 @@ SYNOPSIS
2120
[--color | --no-color]
2221
[-A <post-context>] [-B <pre-context>] [-C <context>]
2322
[-f <file>] [-e] <pattern>
24-
[--and|--or|--not|(|)|-e <pattern>...] [<tree>...]
23+
[--and|--or|--not|(|)|-e <pattern>...]
24+
[--cached | <tree>...]
2525
[--] [<pathspec>...]
2626

2727
DESCRIPTION

0 commit comments

Comments
 (0)