Skip to main content

Module interpret_trailers

Module interpret_trailers 

Source
Expand description

Commit message trailer parsing and rewriting (Git-compatible).

Behaviour matches upstream git/trailer.c / git interpret-trailers.

Structs§

NewTrailerArg
ProcessTrailerOptions

Enums§

TrailerIfExists
TrailerIfMissing
TrailerWhere
Placement of a new trailer relative to an anchor trailer.

Functions§

complete_line
Complete stdin/file input with a trailing newline when missing (Git strbuf_complete_line).
process_trailers
Process a commit message: parse trailer block, apply config and --trailer args, emit result.
trailer_if_exists_from_str
Parse trailer.ifexists / --if-exists values.
trailer_if_missing_from_str
Parse trailer.ifmissing / --if-missing values.
trailer_where_from_str
Parse trailer.where / --where values (Git spelling).