get_commit_info

Function get_commit_info 

Source
pub fn get_commit_info(repo_path: &Path, commit_ref: &str) -> Result<CommitInfo>
Expand description

Retrieves information about a specific commit.

Resolves the commit reference (SHA, HEAD, branch name, etc.) and returns details including timestamp, branch, and summary.

ยงErrors

Returns an error if the repository cannot be found or the commit reference cannot be resolved.