From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthieu Moy Subject: [PATCH 2/3] Documentation/grep: fix documentation of -O Date: Fri, 18 Sep 2015 17:01:49 +0200 Message-ID: <1442588510-7379-3-git-send-email-Matthieu.Moy@imag.fr> References: <20150917174306.GA29171@sigill.intra.peff.net> <1442588510-7379-1-git-send-email-Matthieu.Moy@imag.fr> Cc: git@vger.kernel.org, Alastair McGowan-Douglas , Jeff King , Matthieu Moy To: gitster@pobox.com X-From: git-owner@vger.kernel.org Fri Sep 18 17:09:46 2015 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZcxIG-0003BI-3M for gcvg-git-2@plane.gmane.org; Fri, 18 Sep 2015 17:09:44 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754426AbbIRPJU (ORCPT ); Fri, 18 Sep 2015 11:09:20 -0400 Received: from mx1.imag.fr ([129.88.30.5]:49784 "EHLO shiva.imag.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754842AbbIRPCM (ORCPT ); Fri, 18 Sep 2015 11:02:12 -0400 Received: from clopinette.imag.fr (clopinette.imag.fr [129.88.34.215]) by shiva.imag.fr (8.13.8/8.13.8) with ESMTP id t8IF1uUH023913 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 18 Sep 2015 17:01:56 +0200 Received: from anie.imag.fr (anie.imag.fr [129.88.7.32]) by clopinette.imag.fr (8.13.8/8.13.8) with ESMTP id t8IF1v40014913; Fri, 18 Sep 2015 17:01:57 +0200 Received: from moy by anie.imag.fr with local (Exim 4.80) (envelope-from ) id 1ZcxAj-00023e-Gn; Fri, 18 Sep 2015 17:01:57 +0200 X-Mailer: git-send-email 2.5.0.402.g8854c44 In-Reply-To: <1442588510-7379-1-git-send-email-Matthieu.Moy@imag.fr> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.0.1 (shiva.imag.fr [129.88.30.5]); Fri, 18 Sep 2015 17:01:56 +0200 (CEST) X-IMAG-MailScanner-Information: Please contact MI2S MIM for more information X-MailScanner-ID: t8IF1uUH023913 X-IMAG-MailScanner: Found to be clean X-IMAG-MailScanner-SpamCheck: X-IMAG-MailScanner-From: moy@imag.fr MailScanner-NULL-Check: 1443193317.24726@keiO8pNYupKN97SYoxuIBA Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: 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 --- Documentation/git-grep.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index 31811f1..1c07c7f 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 []:: ---open-files-in-pager []:: +-O[]:: +--open-files-in-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 -- 2.5.0.402.g8854c44