Expand description
git_branch segment: branch name + dirty indicator.
Canonical definition: docs/specs/git-segments.md.
Hidden when cwd is outside a git repo, when the repo is bare, or
when gix rejects the repo. Detached HEAD renders a short SHA;
unborn HEAD renders the symbolic-ref target (e.g. main).