aboutsummaryrefslogtreecommitdiffstats
path: root/trailer.h
diff options
context:
space:
mode:
authorLinus Arver <linusa@google.com>2024-03-01 00:14:43 +0000
committerJunio C Hamano <gitster@pobox.com>2024-03-01 10:35:42 -0800
commit9aa1b2bc890cea43f2b9aa3379ca88e98a17801f (patch)
tree52a9dc1b2469182356be73bc60bbd5efedd60982 /trailer.h
parenttrailer: move interpret_trailers() to interpret-trailers.c (diff)
downloadgit-9aa1b2bc890cea43f2b9aa3379ca88e98a17801f.tar.gz
git-9aa1b2bc890cea43f2b9aa3379ca88e98a17801f.zip
trailer_info_get(): reorder parameters
This is another preparatory refactor to unify the trailer formatters. Take const struct process_trailer_options *opts as the first parameter, because these options are required for parsing trailers (e.g., whether to treat "---" as the end of the log message). And take struct trailer_info *info last, because it's an "out parameter" (something that the caller wants to use as the output of this function). Signed-off-by: Linus Arver <linusa@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.h')
-rw-r--r--trailer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/trailer.h b/trailer.h
index c6d3ee49bb..410c61b62b 100644
--- a/trailer.h
+++ b/trailer.h
@@ -94,8 +94,9 @@ void parse_trailers(const struct process_trailer_options *,
const char *str,
struct list_head *head);
-void trailer_info_get(struct trailer_info *info, const char *str,
- const struct process_trailer_options *opts);
+void trailer_info_get(const struct process_trailer_options *,
+ const char *str,
+ struct trailer_info *);
void trailer_info_release(struct trailer_info *info);