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

Re: PATCH/RFC: format-patch: Add format.subjectprefixsep to change separators

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 4, 2015, 19:55 UTC
Message-ID
<xmqqlhliqq1f.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1420377686-25608-1-git-send-email-m.dreadlock@gmail.com>
Marc Finet <m.dreadlock@gmail.com> writes:
Show 7 quoted lines
> Some mailing list use "PATCH:" rather than "[PATCH]" to prefix
> patches, so introduce a new option to configure:
>  - 2 chars that would enclose PATCH (and counters)
>  - 1 char that would come just after the PATCH (and counters)
> ---
> This mail has been sent with:
>  git -c format.subjectprefixsep=: send-email --annotate --subject-prefix=PATCH/RFC
A few comments:
 - "Some mailing lists" may want to say "[PATCH v3 #4 of 10]" or
   somesuch; as a customization mechanism, the approach this patch
   takes falls way short to be useful.  "--subject=<format>" option
   where <format> is similar the "log --format" options, e.g.
   --subject="[PATCH% v #%N of %T] %s"
   with format-patch specific set of substitutions (in the above
   example, %v stands for patch version, %N patch number and %T
   total number of patches in the series) may be a better way to go.
 - Do not add configuration variable before you add command line
   option.  Add option first and then when option proves useful you
   can have the corresponding variable, not the other way around.
   Make sure that the comamnd line option overrides configuration
   variable while adding the variable in the second step of such a
   patch series.
Having said all that.

What are these mailing lists and why are they using non-standard convention? Back when Git was young, we would have added more knobs to adjust the behaviour to existing prevailing convention, but now Git is older than X% of projects that use Git where the number X is a pretty large number. Perhaps just like they (whichever mailing lists they are) switched out of Subversion or CVS and started using Git to come to the modern world, maybe it is time they switch their convention as well?

Previous: Marc FinetNext: Marc Finet
Message 2 of 3 in “PATCH/RFC: format-patch: Add format.subjectprefixsep to change separators”
  1. Marc FinetJan 4, 2015
  2. Junio C HamanoJan 4, 2015
  3. Marc FinetJan 8, 2015

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.