pub fn derive_git_root_commit(project_root: &Path) -> Result<Option<String>>Expand description
Derive a stable project ID from the git repository’s initial (root) commit hash.
Returns Ok(Some(hash)) if the project root is inside a git repo with at least one commit.
Returns Ok(None) if git is not installed, the directory is not a git repo, or there are no commits.