[PATCH 3/5] ref-filter.c: add trailer options to used_atom
- From
Taylor Blau <me@ttaylorr.com>
- Date
- Sep 30, 2017, 06:22 UTC
- Message-ID
- <20170930062238.87077-4-me@ttaylorr.com>
- In-Reply-To
- <20170930062238.87077-1-me@ttaylorr.com>
In preparation for "%(trailers)" to take trailer parsing arguments, use Jeff's convenience structure for trailer processing options introduced in 8abc89800c.
We will later populate this field from the arguments given to %(trailers), and then use the trailer_opts instance to format ref trailers correctly using `format_trailer_from_commit`.
Signed-off-by: Taylor Blau <me@ttaylorr.com> --- ref-filter.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/ref-filter.c b/ref-filter.c index 467c0279c..84f14093c 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -82,6 +82,7 @@ static struct used_atom { } remote_ref; struct { enum { C_BARE, C_BODY, C_BODY_DEP, C_LINES, C_SIG, C_SUB, C_TRAILERS } option; + struct process_trailer_options trailer_opts; unsigned int nlines; } contents; struct {
-- 2.14.1.145.gb3622a4ee