Skip to main content

commit_identity_from_env_with_date

Function commit_identity_from_env_with_date 

Source
pub fn commit_identity_from_env_with_date(
    role: &str,
    date_override: &str,
    effective_config: &GitConfig,
) -> Result<Vec<u8>>
Expand description

Like commit_identity_from_env but with the date forced to date_override (any form canonicalize_commit_date accepts), keeping the env/config name+email resolution unchanged. Used by git am --committer-date-is-author-date, which keeps the environment committer name/email but substitutes the author date.