Skip to main content

Module commit_trailers

Module commit_trailers 

Source
Expand description

Cherry-pick / sign-off trailer handling compatible with Git’s sequencer.c and trailer.c.

Used when rewriting commit messages for cherry-pick -x / -s so spacing and trailer detection match upstream tests (e.g. t3511-cherry-pick-x).

Functions§

append_cherry_picked_from_line
Append -x trailer matching sequencer.c (record_origin).
append_signoff_trailer
Append sign-off matching append_signoff in sequencer.c (no APPEND_SIGNOFF_DEDUP).
finalize_cherry_pick_message
Apply -x / -s rewriting plus optional commit.cleanup when -x is set.
format_signoff_line
Build Signed-off-by: Name <email>\n using the same identity resolution as cherry-pick.