Skip to content

Commit 318ca61

Browse files
moygitster
authored andcommitted
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>
1 parent 340f2c5 commit 318ca61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-grep.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ OPTIONS
160160
For better compatibility with 'git diff', `--name-only` is a
161161
synonym for `--files-with-matches`.
162162

163-
-O [<pager>]::
164-
--open-files-in-pager [<pager>]::
163+
-O[<pager>]::
164+
--open-files-in-pager[=<pager>]::
165165
Open the matching files in the pager (not the output of 'grep').
166166
If the pager happens to be "less" or "vi", and the user
167167
specified only one pattern, the first file is positioned at

0 commit comments

Comments
 (0)