From: Jon Seymour Date: Fri, 26 Mar 2010 19:49:06 GMT Subject: Re: [PATCH 0/2] Teach 'git grep' about --open-files-in-pager=[] Message-ID: <2cfc40321003261249g32ba4472x9786a86830ec9813@mail.gmail.com> In-Reply-To: <20100326124650.GA12215@coredump.intra.peff.net> On Fri, Mar 26, 2010 at 11:46 PM, Jeff King wrote: > On Fri, Mar 26, 2010 at 11:48:41AM +0100, Johannes Schindelin wrote: > >> This supports opening the results of a 'git grep' directly in a pager >> (where the pager can be 'vi', too). > > This is not an argument against your patch, but you may be interested in > an alternate method: > >  git grep -n $pattern >grep.out >  vim -q grep.out Or, in bash: vim -q <(git grep -n $pattern) though, of course you don't get the exit code from git. jon.