From: Junio C Hamano Date: Thu, 28 Jan 2010 20:27:58 GMT Subject: Re: [PATCH] grep: expose "status-only" feature via -q Message-ID: <7viqamkm9d.fsf@alter.siamese.dyndns.org> In-Reply-To: <4B61BC02.3070408@gmail.com> Stephen Boyd writes: > 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.