Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2018-08-23 03:46:23 +0300
committerJunio C Hamano <gitster@pobox.com>2018-08-23 20:08:51 +0300
commit00a21f5cbda35eb5d355b453849b625eeca7eac4 (patch)
tree2307ca3358c0fecd27f88d56f64d050566717273 /trailer.h
parenta3b636e21574e6cff1494e0a84644e06201ddb8d (diff)
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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/trailer.h b/trailer.h
index 6d7f8c2a52..82a62b33bb 100644
--- a/trailer.h
+++ b/trailer.h
@@ -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);