Skip to main content

git_commit_date

Function git_commit_date 

Source
async fn git_commit_date(refspec: &str) -> Option<DateTime<Utc>>
Expand description

Run git log -1 --format=%cI <refspec> and parse the result as a UTC DateTime. Returns None on any failure so callers can treat the date as optional.