pub fn commit_exists( repo_path: &Path, commit_sha: &str, ) -> Result<bool, GitError>
Check if a commit exists in the repository.