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

Re: [PATCH] grep: expose "status-only" feature via -q

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 28, 2010, 20:27 UTC
Message-ID
<7viqamkm9d.fsf@alter.siamese.dyndns.org>
In-Reply-To
<4B61BC02.3070408@gmail.com>
Stephen Boyd <bebarino@gmail.com> writes:
Show 10 quoted lines
> On 01/25/2010 03:37 PM, Junio C Hamano wrote:
>> @@ -505,6 +512,8 @@ int cmd_grep(int argc, const char **argv, const char *prefix)
>>   		{ OPTION_CALLBACK, ')', NULL,&opt, NULL, "",
>>   		  PARSE_OPT_NOARG | PARSE_OPT_NONEG | PARSE_OPT_NODASH,
>>   		  close_callback },
>> +		OPT_BOOLEAN('q', "quick",&opt.status_only,
>> +			    "indicate hit with exit status without output"),
>>
>
> Why isn't this --quiet just like grep?
Because I wasn't careful enough.  Thanks; will fix.
Previous: Stephen Boyd
Message 3 of 3 in “grep: expose "status-only" feature via -q”
  1. grep: expose "status-only" feature via -qJunio C Hamano, Jan 25, 2010
  2. Stephen BoydJan 28, 2010
  3. Junio C HamanoJan 28, 2010

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.