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

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

From
Jeff King <peff@peff.net>
Date
Aug 28, 2023, 17:42 UTC
Message-ID
<20230828174259.GA3007263@coredump.intra.peff.net>
In-Reply-To
<ae22b71b-73ea-4634-bd2a-4b64082be955@gmail.com>
On Mon, Aug 28, 2023 at 05:30:36PM +0100, Phillip Wood wrote:
Show 12 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. That would mean dropping rfc_callback() and using
> OPT_BOOL() instead of OPT_CALLBACK_F(). We could add the "RFC " prefix just
> before we add the re-roll suffix.

Good catch. That should also make the leak issue easier to solve, too, as we'd hold the string (and free it) in the main cmd_format_patch() function. This is exactly how the "reroll_count" feature works currently.

-Peff
Previous: Phillip WoodNext: Junio C Hamano
Message 5 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.