diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-02 21:44:06 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-02 21:44:06 +0100 |
commit | c06951894ac943b2aaa288b0e9dc1eb605dfb7b6 (patch) | |
tree | c84152355c7fe666d0bb16197e36eb63e33e0c13 /Documentation/git-grep.txt | |
parent | Merge branch 'ac/cvsimport-revision-mapping' (diff) | |
parent | Add an optional argument for --color options (diff) | |
download | git-c06951894ac943b2aaa288b0e9dc1eb605dfb7b6.tar.xz git-c06951894ac943b2aaa288b0e9dc1eb605dfb7b6.zip |
Merge branch 'ml/color-when'
* ml/color-when:
Add an optional argument for --color options
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r-- | Documentation/git-grep.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index c44724d03a..6305f6d82a 100644 --- a/Documentation/git-grep.txt +++ b/Documentation/git-grep.txt @@ -18,7 +18,7 @@ SYNOPSIS [-z | --null] [-c | --count] [--all-match] [-q | --quiet] [--max-depth <depth>] - [--color | --no-color] + [--color[=<when>] | --no-color] [-A <post-context>] [-B <pre-context>] [-C <context>] [-f <file>] [-e] <pattern> [--and|--or|--not|(|)|-e <pattern>...] [<tree>...] @@ -111,12 +111,14 @@ OPTIONS Instead of showing every matched line, show the number of lines that match. ---color:: +--color[=<when>]:: Show colored matches. + The value must be always (the default), never, or auto. --no-color:: Turn off match highlighting, even when the configuration file gives the default to color output. + Same as `--color=never`. -[ABC] <context>:: Show `context` trailing (`A` -- after), or leading (`B` |