trailer: pass process_trailer_opts to trailer_info_get()
commit00a21f5cbda35eb5d355b453849b625eeca7eac4
authorJeff King <peff@peff.net>
Thu, 23 Aug 2018 00:46:23 +0000 (22 20:46 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Aug 2018 17:08:51 +0000 (23 10:08 -0700)
tree2307ca3358c0fecd27f88d56f64d050566717273
parenta3b636e21574e6cff1494e0a84644e06201ddb8d
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>
sequencer.c
trailer.c
trailer.h