diff mbox series

[GSoC,RFC,4/6] builtin/log: fill subject extra prefix in format-patch

Message ID 20250303220029.10716-5-lucasseikioshiro@gmail.com (mailing list archive)
State New
Headers show
Series Add --subject-extra-prefix flag to format-patch | expand

Commit Message

Lucas Seiki Oshiro March 3, 2025, 10 p.m. UTC
Since the `struct rev_info` is the responsible of holding the subject extra
prefix string, copy to its `subject_extra_prefix` field the string provided
by --subject-extra-prefix when calling `format-patch`.

Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
---
 builtin/log.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/builtin/log.c b/builtin/log.c
index 52dc0301cf..034ad44ef0 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -2205,6 +2205,7 @@  int cmd_format_patch(int argc,
 		rev.reroll_count = reroll_count;
 	}
 
+	rev.subject_extra_prefix = extra_prefix;
 	rev.subject_prefix = cfg.sprefix.buf;
 
 	for (i = 0; i < cfg.extra_hdr.nr; i++) {