pub fn resolve_commit_ref(repo_path: &Path, reference: &str) -> Result<String>Expand description
Resolves a git reference (SHA, HEAD, branch name, etc.) to a full commit SHA.
Supports:
- Full and partial SHAs
- HEAD and HEAD~N syntax
- Branch names
- Tag names
§Arguments
repo_path- A path inside the git repositoryreference- The git reference to resolve (SHA, HEAD, branch, tag, etc.)
§Errors
Returns an error if the repository cannot be found or the reference cannot be resolved to a valid commit.