mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
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>
This commit is contained in:
committed by
Junio C Hamano
parent
ae0ec2e0e0
commit
9aa1b2bc89
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user