Skip to content

Commit

Permalink
Documentation/grep: fix documentation of -O
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Matthieu Moy authored and Junio C Hamano committed Sep 21, 2015
1 parent 340f2c5 commit 318ca61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Documentation/git-grep.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 318ca61

Please sign in to comment.