From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthias Lederhofer Subject: [PATCH] correct documentation for git grep Date: Mon, 26 Jun 2006 01:39:18 +0200 Message-ID: References: <20060625184757.f8273820.tihirvon@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Mon Jun 26 01:39:26 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FueCL-0003Zb-Ix for gcvg-git@gmane.org; Mon, 26 Jun 2006 01:39:25 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964899AbWFYXjV (ORCPT ); Sun, 25 Jun 2006 19:39:21 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S964900AbWFYXjV (ORCPT ); Sun, 25 Jun 2006 19:39:21 -0400 Received: from moooo.ath.cx ([85.116.203.178]:52430 "EHLO moooo.ath.cx") by vger.kernel.org with ESMTP id S964899AbWFYXjV (ORCPT ); Sun, 25 Jun 2006 19:39:21 -0400 To: Johannes Schindelin Mail-Followup-To: Johannes Schindelin , git@vger.kernel.org Content-Disposition: inline In-Reply-To: User-Agent: mutt-ng/devel-r790 (Linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Signed-off-by: Matthias Lederhofer --- > ... and by the far the most common use is to pass more than one pattern. > Also, the usage is "[-e] [-e ...]". Ok, so I changed the patch :) Documentation/git-grep.txt | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index 7b810df..3dd1bdd 100644 --- a/Documentation/git-grep.txt +++ b/Documentation/git-grep.txt @@ -16,7 +16,7 @@ SYNOPSIS [-n] [-l | --files-with-matches] [-L | --files-without-match] [-c | --count] [-A ] [-B ] [-C ] - [-f ] [-e ] + [-f ] [-e] [-e [..]] [...] [--] [...] @@ -71,6 +71,12 @@ OPTIONS -f :: Read patterns from , one per line. +-e:: + The next parameter is a pattern. This option has to be + used for patterns starting with - and should be used in + scripts passing user input to grep. You can specify multiple + patterns which will be combined by or. + `...`:: Search blobs in the trees for specified patterns. -- 1.4.1.rc1.g72a4-dirty