Skip to main content

get_user_email

Function get_user_email 

Source
pub fn get_user_email(repo: &Repository) -> Result<Option<String>>
Expand description

Returns the configured Git user email for the repository, if present.

Looks up user.email using the repository’s config resolution order.

§Errors

  • Reading repository configuration fails.