git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 02/12] git-grep: support --no-external-grep

From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
Date
Jul 24, 2008, 23:16 UTC
Message-ID
<fcaeb9bf0807241616k787ea8cco75d1a93a3eb516@mail.gmail.com>
In-Reply-To
<20080724202634.GB3760@blimp.local>
On 7/25/08, Alex Riesen <raa.lkml@gmail.com> wrote:
Show 9 quoted lines
> Nguyen Thai Ngoc Duy, Wed, Jul 23, 2008 16:55:49 +0200:
>
> >
>  > +static int no_external_grep;
>  > +
>
>
> If you have used direct logic instead of negative, your patch would
>  have been simplier and the code would be easier to understand. I.e.:
Point taken.
Show 6 quoted lines
>  +               if (!strcmp("--no-external-grep", arg)) {
>  +                       external_grep = 0;
>  +                       continue;
>  +               }
>
>  BTW, how about a config option for this? And maybe --external-grep={yes|no}

I don't need --external-grep=yes now, but that would be good for testing external grep. About config option, is it really needed?

-- 
Duy
Previous: Alex Riesen
Message 3 of 3 in “git-grep: support --no-external-grep”
  1. 02/12 git-grep: support --no-external-grepNguyễn Thái Ngọc Duy, Jul 23, 2008
  2. Alex RiesenJul 24, 2008
  3. Nguyen Thai Ngoc DuyJul 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.