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

Re: [PATCH v3] format-patch: Add --rfc for the common case of [RFC PATCH]

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 21, 2016, 15:57 UTC
Message-ID
<xmqqy42lb5z9.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<501a6bfb2a70f44f080b2f119e4503ccbf88f639.1474330487.git-series.josh@joshtriplett.org>
Josh Triplett <josh@joshtriplett.org> writes:
> This provides a shorter and more convenient alias for
> --subject-prefix='RFC PATCH'.

Shorter and more convenient is quite subjective but more important as a justification is that we believe [RFC PATCH] is used fairly commonly (at least in certain circles).

> Includes documentation in the format-patch manpage, and a new test
> covering --rfc.
We can see that from diffstat ;-)
I'd retitle this like so:
    format-patch: add "--rfc" for the common case of [RFC PATCH]
    Add an alias for --subject-prefix='RFC PATCH', which is used
    commonly in some development communities to deserve such a
    short-hand.
    Signed-off-by: Josh Triplett <josh@joshtriplett.org>
    Reviewed-by: Jeff King <peff@peff.net>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Show 23 quoted lines
> diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
> index 9624c84..9b200b3 100644
> --- a/Documentation/git-format-patch.txt
> +++ b/Documentation/git-format-patch.txt
> @@ -19,7 +19,8 @@ SYNOPSIS
>  		   [--start-number <n>] [--numbered-files]
>  		   [--in-reply-to=Message-Id] [--suffix=.<sfx>]
>  		   [--ignore-if-in-upstream]
> -		   [--subject-prefix=Subject-Prefix] [(--reroll-count|-v) <n>]
> +		   [--rfc] [--subject-prefix=Subject-Prefix]
> +		   [(--reroll-count|-v) <n>]
>  		   [--to=<email>] [--cc=<email>]
>  		   [--[no-]cover-letter] [--quiet] [--notes[=<ref>]]
>  		   [<common diff options>]
> @@ -172,6 +173,11 @@ will want to ensure that threading is disabled for `git send-email`.
>  	allows for useful naming of a patch series, and can be
>  	combined with the `--numbered` option.
>  
> +--rfc::
> +	Alias for `--subject-prefix="RFC PATCH"`. RFC means "Request For
> +	Comments"; use this when sending an experimental patch for
> +	discussion rather than application.
> +

I do not think we want to be in the business of encouragign or discouraging the use of "[RFC PATCH]".

	--rfc:: A short-hand for `--subject-prefix="RFC PATCH"`.
        	RFC stands for "request for comments" and such a
        	prefix is used in some development communities when
        	sending a patch primarily to illustrate an idea to
        	help discussion, rather than to be applied.
perhaps?
The code and test both look good to me.
Thanks.
Previous: Jeff King
Message 3 of 3 in “format-patch: Add --rfc for the common case of [RFC PATCH]”
  1. format-patch: Add --rfc for the common case of [RFC PATCH]Josh Triplett, Sep 20, 2016
  2. Jeff KingSep 20, 2016
  3. Junio C HamanoSep 21, 2016

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.