pub fn head_branch_name(mkit_dir: &Path) -> String
Current branch name for recovery logging — empty for a detached HEAD or an unreadable/symbolic-only HEAD.