From: sean Date: Sat, 21 Jan 2006 14:13:18 GMT Subject: Re: git-grep documentation Message-ID: In-Reply-To: <7vvewet330.fsf@assigned-by-dhcp.cox.net> 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' [