diff options
| author | Jesús Miguel Benito Calzada <beni0888@hotmail.com> | 2024-05-23 12:51:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-23 12:51:02 +0200 |
| commit | 1b29fd3a460e43d4a7581d6a6a7e5a1877a39068 (patch) | |
| tree | 1413684a5502f4a5e88fe91e9323fb5ea9afdec0 /plugins | |
| parent | 203369b0f9ec284e06b73f555a14fa5f02be5a0a (diff) | |
| download | zsh-1b29fd3a460e43d4a7581d6a6a7e5a1877a39068.tar.gz zsh-1b29fd3a460e43d4a7581d6a6a7e5a1877a39068.tar.bz2 zsh-1b29fd3a460e43d4a7581d6a6a7e5a1877a39068.zip | |
feat(git): support `stable` in `git_main_branch` (#12447)
Diffstat (limited to 'plugins')
| -rw-r--r-- | plugins/git/git.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index c48e365b5..1e65a7acc 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -35,7 +35,7 @@ function git_develop_branch() { function git_main_branch() { command git rev-parse --git-dir &>/dev/null || return local ref - for ref in refs/{heads,remotes/{origin,upstream}}/{main,trunk,mainline,default,master}; do + for ref in refs/{heads,remotes/{origin,upstream}}/{main,trunk,mainline,default,stable,master}; do if command git show-ref -q --verify $ref; then echo ${ref:t} return 0 |
