pub fn empty_commit(repo: &Repository) -> Result<Oid>Expand description
Create an empty initial commit on HEAD with no parents.
Used when initialising a new bare repository to ensure HEAD points to a
valid commit. Returns WorktreeError::NonEmptyIndex if the index is not
empty when called.