git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GSoC][RFC PATCH 0/6] Add --subject-extra-prefix flag to format-patch
@ 2025-03-03 22:00 Lucas Seiki Oshiro
  2025-03-03 22:00 ` [GSoC][RFC PATCH 1/6] builtin/log: add subject-extra-prefix " Lucas Seiki Oshiro
                   ` (6 more replies)
  0 siblings, 7 replies; 15+ messages in thread
From: Lucas Seiki Oshiro @ 2025-03-03 22:00 UTC (permalink / raw)
  To: git; +Cc: Lucas Seiki Oshiro

Hi!

This is a "scratch-my-own-itch" patch, adding a new flag to format-patch. This
flag allows the user add an extra prefix to the subject, placed before the
actual prefix, like the "[GSoC]" in the subject of this patchset.

This is specially targeted for new users or developers from mentoring projects
like GSoC or Outreachy. Currently, if we want to add to the subject something
like "[Newbie]", "[GSoC]" or "[Outreachy]", we need to perform some hacks like
passing --subject-prefix="GSoC][PATCH" or changing it manually in the patch
content. 

With this new flag, this patchset could be created by using:

`git format-patch -6 --subject-extra-prefix="GSoC" --rfc --to="..."`

This would be only a feature request but I thought it would be better to 
present a first solution, so I'm sending my implementation as a RFC patchset.

Thanks!

Lucas Seiki Oshiro (6):
  builtin/log: add subject-extra-prefix flag to format-patch
  builtin/log: die if -k and --suject-extra-prefix are used together
  revision: add subject_extra_field to struct rev_info
  builtin/log: fill subject extra prefix in format-patch
  log-tree: add subject prefix in output email subject
  t4014: add tests for the new flag --subject-extra-prefix

 builtin/log.c           |  7 +++++++
 log-tree.c              | 12 ++++++++----
 revision.h              |  2 ++
 t/t4014-format-patch.sh | 40 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 57 insertions(+), 4 deletions(-)

-- 
2.39.5 (Apple Git-154)


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2025-03-05 14:26 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-03 22:00 [GSoC][RFC PATCH 0/6] Add --subject-extra-prefix flag to format-patch Lucas Seiki Oshiro
2025-03-03 22:00 ` [GSoC][RFC PATCH 1/6] builtin/log: add subject-extra-prefix " Lucas Seiki Oshiro
2025-03-03 22:00 ` [GSoC][RFC PATCH 2/6] builtin/log: die if -k and --suject-extra-prefix are used together Lucas Seiki Oshiro
2025-03-03 22:36   ` Eric Sunshine
2025-03-03 22:00 ` [GSoC][RFC PATCH 3/6] revision: add subject_extra_field to struct rev_info Lucas Seiki Oshiro
2025-03-03 22:00 ` [GSoC][RFC PATCH 4/6] builtin/log: fill subject extra prefix in format-patch Lucas Seiki Oshiro
2025-03-03 22:00 ` [GSoC][RFC PATCH 5/6] log-tree: add subject prefix in output email subject Lucas Seiki Oshiro
2025-03-03 22:00 ` [GSoC][RFC PATCH 6/6] t4014: add tests for the new flag --subject-extra-prefix Lucas Seiki Oshiro
2025-03-03 23:08 ` [GSoC][RFC PATCH 0/6] Add --subject-extra-prefix flag to format-patch Junio C Hamano
2025-03-04  7:32   ` Patrick Steinhardt
2025-03-04 22:06     ` Junio C Hamano
2025-03-04 13:05   ` Junio C Hamano
2025-03-04 23:19     ` Lucas Seiki Oshiro
2025-03-05  2:06       ` Junio C Hamano
2025-03-05 14:26         ` Lucas Seiki Oshiro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).