Skip to main content

format_commit_identity

Function format_commit_identity 

Source
pub fn format_commit_identity(
    name: &str,
    email: &str,
    date: &str,
) -> Result<Vec<u8>>
Expand description

Format a name/email/date triple as git’s raw ident line (Name <email> <seconds> +HHMM), rejecting control bytes in either component and anything but the raw date form.