summaryrefslogtreecommitdiff
path: root/trailer.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2017-08-10 18:03:58 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-08-10 19:41:25 (GMT)
commit8abc89800c09cda7910c2211ebbbbb95a3008b63 (patch)
tree5b44f9610fdcc743b0bf5257a072ff2477757797 /trailer.h
parentcf8899d285d2648013040ec7196ffd3de0606664 (diff)
downloadgit-8abc89800c09cda7910c2211ebbbbb95a3008b63.zip
git-8abc89800c09cda7910c2211ebbbbb95a3008b63.tar.gz
git-8abc89800c09cda7910c2211ebbbbb95a3008b63.tar.bz2
trailer: put process_trailers() options into a struct
We already have two options and are about to add a few more. To avoid having a huge number of boolean arguments, let's convert to an options struct which can be passed in. 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.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/trailer.h b/trailer.h
index 65cc5d7..9da00be 100644
--- a/trailer.h
+++ b/trailer.h
@@ -22,7 +22,15 @@ struct trailer_info {
size_t trailer_nr;
};
-void process_trailers(const char *file, int in_place, int trim_empty,
+struct process_trailer_options {
+ int in_place;
+ int trim_empty;
+};
+
+#define PROCESS_TRAILER_OPTIONS_INIT {0}
+
+void process_trailers(const char *file,
+ const struct process_trailer_options *opts,
struct string_list *trailers);
void trailer_info_get(struct trailer_info *info, const char *str);