summaryrefslogtreecommitdiff
path: root/Documentation/git-grep.txt
diff options
context:
space:
mode:
authorLibravatar Matthieu Moy <Matthieu.Moy@imag.fr>2015-09-19 09:47:49 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2015-09-21 10:48:21 -0700
commit318ca61531d3189aef7b32a924518db1dd9f3374 (patch)
tree07445f3276b13f2595a3b08b76ba14c7a0e33093 /Documentation/git-grep.txt
parentDocumentation: use 'keyid' consistently, not 'key-id' (diff)
downloadtgif-318ca61531d3189aef7b32a924518db1dd9f3374.tar.xz
Documentation/grep: fix documentation of -O
Since the argument of -O, --open-file-in-pager is optional, it must be stuck to the command. Reflect this in the documentation. Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Reviewed-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-grep.txt')
-rw-r--r--Documentation/git-grep.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt
index 31811f16bd..1c07c7fe9a 100644
--- a/Documentation/git-grep.txt
+++ b/Documentation/git-grep.txt
@@ -160,8 +160,8 @@ OPTIONS
For better compatibility with 'git diff', `--name-only` is a
synonym for `--files-with-matches`.
--O [<pager>]::
---open-files-in-pager [<pager>]::
+-O[<pager>]::
+--open-files-in-pager[=<pager>]::
Open the matching files in the pager (not the output of 'grep').
If the pager happens to be "less" or "vi", and the user
specified only one pattern, the first file is positioned at