Function head_hash
Source pub async fn head_hash(repo_path: PathBuf) -> Result<String, GitError>
Expand description
Re-exported commit/sync/diff APIs.
Returns the full hash of the current HEAD commit.
§Arguments
repo_path - Path to the git repository or worktree
§Returns
The full commit hash as a string.
§Errors
Returns a GitError if resolving HEAD fails.