From 51166b8754e0df4ed3ee559ddcc4641035ec98ec Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Tue, 1 Aug 2017 11:03:31 +0200 Subject: trailers: introduce struct new_trailer_item This will provide a place to store the current state of the --where, --if-exists and --if-missing options. Signed-off-by: Paolo Bonzini Signed-off-by: Junio C Hamano --- trailer.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'trailer.h') diff --git a/trailer.h b/trailer.h index 2b39a1bee0..b83b249b66 100644 --- a/trailer.h +++ b/trailer.h @@ -1,6 +1,8 @@ #ifndef TRAILER_H #define TRAILER_H +#include "list.h" + enum trailer_where { WHERE_END, WHERE_AFTER, @@ -44,8 +46,18 @@ struct trailer_info { size_t trailer_nr; }; +/* + * A list that represents newly-added trailers, such as those provided + * with the --trailer command line option of git-interpret-trailers. + */ +struct new_trailer_item { + struct list_head list; + + const char *text; +}; + void process_trailers(const char *file, int in_place, int trim_empty, - struct string_list *trailers); + struct list_head *new_trailer_head); void trailer_info_get(struct trailer_info *info, const char *str); -- cgit v1.2.3