mirror of
https://github.com/git/git.git
synced 2026-01-09 17:46:37 +00:00
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
This commit is contained in:
@@ -71,6 +71,7 @@ struct process_trailer_options {
|
||||
int only_trailers;
|
||||
int only_input;
|
||||
int unfold;
|
||||
int no_divider;
|
||||
};
|
||||
|
||||
#define PROCESS_TRAILER_OPTIONS_INIT {0}
|
||||
@@ -79,7 +80,8 @@ void process_trailers(const char *file,
|
||||
const struct process_trailer_options *opts,
|
||||
struct list_head *new_trailer_head);
|
||||
|
||||
void trailer_info_get(struct trailer_info *info, const char *str);
|
||||
void trailer_info_get(struct trailer_info *info, const char *str,
|
||||
const struct process_trailer_options *opts);
|
||||
|
||||
void trailer_info_release(struct trailer_info *info);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user