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, 15:31 UTC
Message-ID
<xmqqedjnji8t.fsf@gitster.g>
In-Reply-To
<20230828125132.25144-1-sir@cmpwn.com>
Drew DeVault <sir@cmpwn.com> writes:
Show 11 quoted lines
> Rather than replacing the configured subject prefix (either through the
> git config or command line) entirely with "RFC PATCH", this change
> prepends RFC to whatever subject prefix was already in use.
>
> This is useful, for example, when a user is working on a repository that
> has a subject prefix considered to disambiguate patches:
>
> 	git config format.subjectPrefix 'PATCH my-project'
>
> Prior to this change, formatting patches with --rfc would lose the
> 'my-project' information.
OK.  

My initial reaction was that we should just deprecate "--rfc" and instead use "--subject-prefix" for whatever multi-token string; that way, we do not need to worry about having to add "--wip" and other "shorthand" options ;-). But the combination of the configuration variable that specifies the tag that is used for everyday operation and a command line option that allows you to add (not replace) RFC would be a justifiable behaviour. It certainly is better than the current (original) design of "--rfc". This needs to be advertised as a backward incompatible change in the release notes, but I doubt that the fallout would be major.

The implementation below looks like it is quite out of our style, but I'll read v2 instead.

Previous: Junio C Hamano
Message 7 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.