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

Re: [PATCH 4/4] format-patch: Add "--no-stat" as a synonym for "-p"

From
Stephen Boyd <bebarino@gmail.com>
Date
Nov 8, 2009, 23:11 UTC
Message-ID
<1257721866.1734.47.camel@swboyd-laptop>
In-Reply-To
<4AF544DF.6070404@gmail.com>
On Sat, 2009-11-07 at 10:58 +0100, Björn Gustavsson wrote:
Show 13 quoted lines
> diff --git a/builtin-log.c b/builtin-log.c
> index 9df8dac..968a038 100644
> --- a/builtin-log.c
> +++ b/builtin-log.c
> @@ -925,7 +925,7 @@ int cmd_format_patch(int argc, const char **argv, const char *prefix)
>  			"show patch format instead of default (patch + stat)"),
>  		OPT_BOOLEAN(0, "ignore-if-in-upstream", &ignore_if_in_upstream,
>  			    "don't include a patch matching a commit upstream"),
> -		OPT_BOOLEAN('p', NULL, &use_patch_format,
> +		OPT_BOOLEAN('p', "no-stat", &use_patch_format,
>  			"show patch format instead of default (patch + stat)"),
>  		OPT_GROUP("Messaging"),
>  		{ OPTION_CALLBACK, 0, "add-header", NULL, "header",

I think this needs to have the OPT_NO_NEG flag so users can't say --no-no-stat.

Previous: Björn GustavssonNext: Björn Gustavsson
Message 2 of 3 in “format-patch: Add "--no-stat" as a synonym for "-p"”
  1. 4/4 format-patch: Add "--no-stat" as a synonym for "-p"Björn Gustavsson, Nov 7, 2009
  2. Stephen BoydNov 8, 2009
  3. Björn GustavssonNov 9, 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.