diff mbox series

[GSoC,RFC,3/6] revision: add subject_extra_field to struct rev_info

Message ID 20250303220029.10716-4-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
Currently, the `struct rev_info` is responsible for holding information
about the prefix that is added at the beginning of the subject when
`format-patch` is called. This way, it makes sense that it also holds
the information of the extra prefix, if it is present.

Add a new field called `subject_extra_field` to `struct rev_info` and
use NULL as its default value.

Signed-off-by: Lucas Seiki Oshiro <lucasseikioshiro@gmail.com>
---
 revision.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/revision.h b/revision.h
index 71e984c452..70927ef1fb 100644
--- a/revision.h
+++ b/revision.h
@@ -294,6 +294,7 @@  struct rev_info {
 	const char	*extra_headers;
 	const char	*log_reencode;
 	const char	*subject_prefix;
+	const char	*subject_extra_prefix;
 	int		patch_name_max;
 	int		no_inline;
 	int		show_log_size;
@@ -413,6 +414,7 @@  struct rev_info {
 	.expand_tabs_in_log = -1, \
 	.commit_format = CMIT_FMT_DEFAULT, \
 	.expand_tabs_in_log_default = 8, \
+        .subject_extra_prefix = NULL, \
 }
 
 /**