Skip to main content

extract_coauthors

Function extract_coauthors 

pub fn extract_coauthors(message: &str) -> Vec<String>
Expand description

Extract Co-Authored-By: trailer values from a commit message.

Returns the email (lowercased) when the Name <email> form is present, or the whole body (lowercased, trimmed) as a fallback for non-standard trailers. The email form is preferred because it is more identity-stable than display names.

Matching is case-insensitive on the trailer key; the returned strings are always lowercased so callers can do case-insensitive dedup.