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

Re: [PATCH] builtin/log.c: prepend "RFC" on --rfc

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 28, 2023, 18:12 UTC
Message-ID
<xmqq1qfnhw93.fsf@gitster.g>
In-Reply-To
<ae22b71b-73ea-4634-bd2a-4b64082be955@gmail.com>
Phillip Wood <phillip.wood123@gmail.com> writes:
Show 10 quoted lines
> I agree it sounds like a good change but if we're going to change it
> than I think we should ensure
>
>     git format-patch --subject-prefix=foo --rfc
>
> and
>
>     git format-patch --rfc --subject-prefix=foo
>
> give the same result.

Good catch. The implementation with this patch feel philosophically dirty, in that the new "--rfc" is no longer "we use a different subject-prefix" but "this new option is independent from the subject-prefix; whatever string that other option receives goes before the title, and our string goes even before that". And to reflect that independent nature better, it should just grab the string into a separate local variable and combine the two into a single prefix string after parse_options() returns.

Thanks.
Previous: Jeff KingNext: Junio C Hamano
Message 6 of 7 in “builtin/log.c: prepend "RFC" on --rfc”
  1. builtin/log.c: prepend "RFC" on --rfcDrew DeVault, Aug 28, 2023
  2. Jeff KingAug 28, 2023
  3. Drew DeVaultAug 28, 2023
  4. Phillip WoodAug 28, 2023
  5. Jeff KingAug 28, 2023
  6. Junio C HamanoAug 28, 2023
  7. Junio C HamanoAug 28, 2023

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.