pub trait ToCommit { type Error: Error + Send + Sync + 'static; // Required method fn to_commit(self, repo: &Repository) -> Result<Commit, Self::Error>; }
A common trait for anything that can convert to a Commit.
Commit
Converts to a commit in repo.
repo