pub fn get_current_branch(root: impl AsRef<Path>) -> Result<String>
Get the current git branch name
Returns the branch name (e.g., “main”, “feature-x”) or “HEAD” if in detached HEAD state.