Git Plugin: Detached HEAD Prompt Display in Oh‑My‑Zsh 4.7.0
Detached HEAD Prompt Behavior In Oh‑My‑Zsh 4.7.0 the Git plugin’s git_prompt_info function displays the current branch name under normal circumstances. When the repository is in a detached HEAD state, the function falls back to the abbreviated commit hash. A configuration variable, GIT_PROMPT_DETACHED , allows users to override the displayed string, but the