Skip to main content

current_head_sha

Function current_head_sha 

Source
pub fn current_head_sha(repo_dir: &Path) -> Option<String>
Expand description

Capture the current HEAD commit SHA so it can be stored in the session manifest at session start. The session close pass uses it as the diff base for committed-during-session changes. Returns None when not in a git repo or no commits exist yet.