mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-27 16:59:03 +01:00
git: fix gbda
trying to delete worktree branches (#8102)
Git learned to add a `+` in front of branches that are
checked out in other worktrees.
See: 745f681289/Documentation/RelNotes/2.23.0.txt (L252-L256)
This commit is contained in:
commit
d6fc6edb29
@ -22,7 +22,7 @@ plugins=(... git)
|
||||
| gb | git branch |
|
||||
| gba | git branch -a |
|
||||
| gbd | git branch -d |
|
||||
| gbda | git branch --no-color --merged \| command grep -vE "^(\*\|\s*(master\|develop\|dev)\s*$)" \| command xargs -n 1 git branch -d |
|
||||
| gbda | git branch --no-color --merged \| command grep -vE "^(\+|\*\|\s*(master\|develop\|dev)\s*$)" \| command xargs -n 1 git branch -d |
|
||||
| gbD | git branch -D |
|
||||
| gbl | git blame -b -w |
|
||||
| gbnm | git branch --no-merged |
|
||||
|
@ -42,7 +42,7 @@ alias gap='git apply'
|
||||
alias gb='git branch'
|
||||
alias gba='git branch -a'
|
||||
alias gbd='git branch -d'
|
||||
alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
|
||||
alias gbda='git branch --no-color --merged | command grep -vE "^(\+|\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
|
||||
alias gbD='git branch -D'
|
||||
alias gbl='git blame -b -w'
|
||||
alias gbnm='git branch --no-merged'
|
||||
|
Loading…
Reference in New Issue
Block a user