Skip to main content

get_first_commit

Function get_first_commit 

Source
pub fn get_first_commit() -> Result<String>
Expand description

Return the SHA of the very first commit in the repository.

Runs git rev-list --max-parents=0 HEAD and returns the first line (repositories with multiple roots will return the oldest).