pub fn rewrite_author_trailers(
message: &str,
old_name: &str,
old_email: &str,
new_name: &str,
new_email: &str,
) -> StringExpand description
Rewrite author-related trailers in a commit message when identity changes.
Only the trailer block — the last paragraph of a message that has more
than one paragraph — is considered. Signed-off-by, Co-authored-by and
Authored-by lines there whose email matches old_email
(case-insensitive) are rewritten; everything else, including line endings
(\n or \r\n), is left byte-for-byte unchanged. Does not invent trailers.