pub fn get_branch_info() -> BranchInfoExpand description
Get detailed branch information, using cache if available.
Returns a BranchInfo enum indicating:
Branch(name): On a named branchDetachedHead(hash): In detached HEAD state (with optional commit hash)NotGitRepo: Not in a git repository