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

Re: [PATCH] reset: add --quiet option

From
Stephen Boyd <bebarino@gmail.com>
Date
Nov 30, 2009, 01:18 UTC
Message-ID
<1259543939.5679.5.camel@swboyd-laptop>
In-Reply-To
<1259492290-21771-1-git-send-email-felipe.contreras@gmail.com>
On Sun, 2009-11-29 at 12:58 +0200, Felipe Contreras wrote:
Show 13 quoted lines
> diff --git a/builtin-reset.c b/builtin-reset.c
> index 73e6022..c0127c4 100644
> --- a/builtin-reset.c
> +++ b/builtin-reset.c
> @@ -209,7 +209,7 @@ int cmd_reset(int argc, const char **argv, const char *prefix)
>  				"reset HEAD, index and working tree", HARD),
>  		OPT_SET_INT(0, "merge", &reset_type,
>  				"reset HEAD, index and working tree", MERGE),
> -		OPT_BOOLEAN('q', NULL, &quiet,
> +		OPT_BOOLEAN('q', "quiet", &quiet,
>  				"disable showing new HEAD in hard reset and progress message"),
>  		OPT_BOOLEAN('p', "patch", &patch_mode, "select hunks interactively"),
>  		OPT_END()

Why not just OPT__QUIET? We lose the specific help string but it's possible that what quiet is silencing will change in the future.

Maybe you could move the help string to the documentation if you want to save it.

Previous: Felipe ContrerasNext: Junio C Hamano
Message 2 of 9 in “reset: add --quiet option”
  1. reset: add --quiet optionFelipe Contreras, Nov 29, 2009
  2. Stephen BoydNov 30, 2009
  3. Junio C HamanoNov 30, 2009
  4. Felipe ContrerasNov 30, 2009
  5. Stephen BoydNov 30, 2009
  6. Felipe ContrerasDec 3, 2009
  7. Stephen BoydDec 3, 2009
  8. Junio C HamanoDec 4, 2009
  9. Felipe ContrerasDec 4, 2009

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.