Documentation/grep: fix documentation of -O
authorMatthieu Moy <Matthieu.Moy@imag.fr>
Sat, 19 Sep 2015 07:47:49 +0000 (09:47 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Sep 2015 17:48:21 +0000 (10:48 -0700)
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>
Documentation/git-grep.txt
index 31811f16bdaac49d01d38dcdea82bb191942b1cf..1c07c7fe9ac8fe9835458fb56f479574d9481fb5 100644 (file)
@@ -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