diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-09-17 23:53:54 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-17 23:53:54 +0300 |
commit | fba9654364a523bf146df26052ab05dd52c1d719 (patch) | |
tree | cf422aabddfa4c12069785a086e426a971e1ebe6 /ref-filter.c | |
parent | 30035d1d60053e2999041ca14ab607d40206e201 (diff) | |
parent | 66e83d9b41f7438cb167b9bb54093ebbf0532437 (diff) |
Merge branch 'jk/trailer-fixes'
"git interpret-trailers" and its underlying machinery had a buggy
code that attempted to ignore patch text after commit log message,
which triggered in various codepaths that will always get the log
message alone and never get such an input.
* jk/trailer-fixes:
append_signoff: use size_t for string offsets
sequencer: ignore "---" divider when parsing trailers
pretty, ref-filter: format %(trailers) with no_divider option
interpret-trailers: allow suppressing "---" divider
interpret-trailers: tighten check for "---" patch boundary
trailer: pass process_trailer_opts to trailer_info_get()
trailer: use size_t for iterating trailer list
trailer: use size_t for string offsets
Diffstat (limited to 'ref-filter.c')
-rw-r--r-- | ref-filter.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ref-filter.c b/ref-filter.c index 9bacd32f0a..e1bcb4ca8a 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -264,6 +264,8 @@ static int trailers_atom_parser(const struct ref_format *format, struct used_ato struct string_list params = STRING_LIST_INIT_DUP; int i; + atom->u.contents.trailer_opts.no_divider = 1; + if (arg) { string_list_split(¶ms, arg, ',', -1); for (i = 0; i < params.nr; i++) { |