feat(git_branch): add ignore_bare_repo flag (#6936)

This commit is contained in:
Victor Campello
2025-10-21 19:10:17 +01:00
committed by GitHub
parent 5db4ea7878
commit 87b7ac342f
4 changed files with 33 additions and 1 deletions
+1
View File
@@ -1847,6 +1847,7 @@ The `git_branch` module shows the active branch of the repo in your current dire
| `truncation_symbol` | `'…'` | The symbol used to indicate a branch name was truncated. You can use `''` for no symbol. |
| `only_attached` | `false` | Only show the branch name when not in a detached `HEAD` state. |
| `ignore_branches` | `[]` | A list of names to avoid displaying. Useful for 'master' or 'main'. |
| `ignore_bare_repo` | `false` | Do not show when in a bare repo. |
| `disabled` | `false` | Disables the `git_branch` module. |
### Variables