Expand description
Commit message trailer parsing and rewriting (Git-compatible).
Behaviour matches upstream git/trailer.c / git interpret-trailers.
Structs§
Enums§
- Trailer
IfExists - Trailer
IfMissing - Trailer
Where - 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
--trailerargs, emit result. - trailer_
if_ exists_ from_ str - Parse
trailer.ifexists/--if-existsvalues. - trailer_
if_ missing_ from_ str - Parse
trailer.ifmissing/--if-missingvalues. - trailer_
where_ from_ str - Parse
trailer.where/--wherevalues (Git spelling).