From mboxrd@z Thu Jan 1 00:00:00 1970 From: sean Subject: Re: git-grep documentation Date: Sat, 21 Jan 2006 09:13:18 -0500 Message-ID: References: <7vvewet330.fsf@assigned-by-dhcp.cox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: git@vger.kernel.org X-From: git-owner@vger.kernel.org Sat Jan 21 15:18:54 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 1F0JZm-0008Ks-Uf for gcvg-git@gmane.org; Sat, 21 Jan 2006 15:18:47 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932197AbWAUOSM (ORCPT ); Sat, 21 Jan 2006 09:18:12 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932200AbWAUOSM (ORCPT ); Sat, 21 Jan 2006 09:18:12 -0500 Received: from bayc1-pasmtp03.bayc1.hotmail.com ([65.54.191.163]:37894 "EHLO BAYC1-PASMTP03.bayc1.hotmail.com") by vger.kernel.org with ESMTP id S932197AbWAUOSL (ORCPT ); Sat, 21 Jan 2006 09:18:11 -0500 X-Originating-IP: [69.156.6.171] X-Originating-Email: [seanlkml@sympatico.ca] Received: from linux1.attic.local ([69.156.6.171]) by BAYC1-PASMTP03.bayc1.hotmail.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Sat, 21 Jan 2006 06:18:11 -0800 Received: from guru.attic.local (guru.attic.local [10.10.10.28]) by linux1.attic.local (Postfix) with ESMTP id 78275644C23; Sat, 21 Jan 2006 09:18:09 -0500 (EST) To: Junio C Hamano Message-Id: <20060121091318.4508466b.seanlkml@sympatico.ca> In-Reply-To: <7vvewet330.fsf@assigned-by-dhcp.cox.net> X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.10; i386-redhat-linux-gnu) X-OriginalArrivalTime: 21 Jan 2006 14:18:11.0518 (UTC) FILETIME=[82825DE0:01C61E95] Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org On Sat, 21 Jan 2006 00:09:07 -0800 Junio C Hamano wrote: > I'd prefer to keep the options before path parameters if only > for the sanity's sake. How about this instead Hi Junio, I like your patch and it fixes the "-e" problem on the command line nicely. Some comments below though... > [PATCH] git-grep: clarification on parameters. > > We forgot to make sure that there is no more than one pattern > parameter. Also when looking for files in a directory called > '--others', it passed that path limiter without preceding the > end-of-options marker '--' to underlying git-ls-files, which > misunderstood it as one of its options instead. Actually I misinterpreted the intent of git-grep as wanting to allow additional git-ls-files options to be given after the '--' marker on its command line. This misconception arose because of the following comment in git-grep.sh : --) # The rest are git-ls-files paths (or flags) So your new patch should also fix that comment to remove the "(or flags)" portion. [...] > -'git-grep' [