Skip to main content

resolve_author

Function resolve_author 

Source
pub fn resolve_author(name: &str, email: &str, agent: &str) -> (String, String)
Expand description

Resolve the effective git author name and email for a merge commit. Falls back to the agent identity when the caller supplies empty or all-stripped strings. Sanitization runs BEFORE the emptiness check so that inputs like ā€œ\nā€ correctly fall back to the agent identity.