Skip to content

Commit

Permalink
grep docs: --cached and <tree>... are incompatible
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
MarkLodato authored and gitster committed Feb 26, 2010
1 parent bfb8306 commit ec2537b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Documentation/git-grep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ git-grep - Print lines matching a pattern
SYNOPSIS
--------
[verse]
'git grep' [--cached]
[-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
'git grep' [-a | --text] [-I] [-i | --ignore-case] [-w | --word-regexp]
[-v | --invert-match] [-h|-H] [--full-name]
[-E | --extended-regexp] [-G | --basic-regexp]
[-F | --fixed-strings] [-n]
Expand All @@ -21,7 +20,8 @@ SYNOPSIS
[--color | --no-color]
[-A <post-context>] [-B <pre-context>] [-C <context>]
[-f <file>] [-e] <pattern>
[--and|--or|--not|(|)|-e <pattern>...] [<tree>...]
[--and|--or|--not|(|)|-e <pattern>...]
[--cached | <tree>...]
[--] [<pathspec>...]

DESCRIPTION
Expand Down

0 comments on commit ec2537b

Please sign in to comment.