diff options
author | Jeff King <peff@peff.net> | 2018-08-23 02:46:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-08-23 19:08:51 +0200 |
commit | 00a21f5cbda35eb5d355b453849b625eeca7eac4 (patch) | |
tree | 2307ca3358c0fecd27f88d56f64d050566717273 /trailer.h | |
parent | trailer: use size_t for iterating trailer list (diff) | |
download | git-00a21f5cbda35eb5d355b453849b625eeca7eac4.tar.xz git-00a21f5cbda35eb5d355b453849b625eeca7eac4.zip |
trailer: pass process_trailer_opts to trailer_info_get()
Most of the trailer code has an "opts" struct which is
filled in by the caller. We don't pass it down to
trailer_info_get(), which does the initial parsing, because
there hasn't yet been a need to do so.
Let's start passing it down in preparation for adding new
options. Note that there's a single caller which doesn't
otherwise have such an options struct. Since it's just one
caller (that we'd have to modify anyway), let's not bother
with any special treatment like accepting a NULL options
struct, and just have it allocate one with the defaults.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'trailer.h')
-rw-r--r-- | trailer.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -77,7 +77,8 @@ void process_trailers(const char *file, const struct process_trailer_options *opts, struct list_head *new_trailer_head); -void trailer_info_get(struct trailer_info *info, const char *str); +void trailer_info_get(struct trailer_info *info, const char *str, + const struct process_trailer_options *opts); void trailer_info_release(struct trailer_info *info); |