Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
0c590aba
Unverified
Commit
0c590aba
authored
Aug 27, 2021
by
wl2776
Committed by
GitHub
Aug 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(git): fix `gbda` alias when there are no merged branches (#10005)
parent
3f0672ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.md
plugins/git/README.md
+1
-1
git.plugin.zsh
plugins/git/git.plugin.zsh
+1
-1
No files found.
plugins/git/README.md
View file @
0c590aba
...
@@ -23,7 +23,7 @@ plugins=(... git)
...
@@ -23,7 +23,7 @@ plugins=(... git)
| gb | git branch |
| gb | git branch |
| gba | git branch -a |
| gba | git branch -a |
| gbd | git branch -d |
| gbd | git branch -d |
| gbda | git branch --no-color --merged
\|
command grep -vE "^(
\+\|\*\|\s
*($(git_main_branch)\|$(git_develop_branch))\s*
$)"
\|
command xargs -n 1 git branch -d
|
| gbda | git branch --no-color --merged
\|
grep -vE "^(
[
+*
]
\|\s
*($(git_main_branch)\|$(git_develop_branch))\s*
$)"
\|
xargs git branch -d 2>/dev/null
|
| gbD | git branch -D |
| gbD | git branch -D |
| gbl | git blame -b -w |
| gbl | git blame -b -w |
| gbnm | git branch --no-merged |
| gbnm | git branch --no-merged |
...
...
plugins/git/git.plugin.zsh
View file @
0c590aba
...
@@ -73,7 +73,7 @@ alias gapt='git apply --3way'
...
@@ -73,7 +73,7 @@ alias gapt='git apply --3way'
alias
gb
=
'git branch'
alias
gb
=
'git branch'
alias
gba
=
'git branch -a'
alias
gba
=
'git branch -a'
alias
gbd
=
'git branch -d'
alias
gbd
=
'git branch -d'
alias
gbda
=
'git branch --no-color --merged | command grep -vE "^(
\+|\*|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs -n 1 git branch -d
'
alias
gbda
=
'git branch --no-color --merged | command grep -vE "^(
[+*]|\s*($(git_main_branch)|$(git_develop_branch))\s*$)" | command xargs git branch -d 2>/dev/null
'
alias
gbD
=
'git branch -D'
alias
gbD
=
'git branch -D'
alias
gbl
=
'git blame -b -w'
alias
gbl
=
'git blame -b -w'
alias
gbnm
=
'git branch --no-merged'
alias
gbnm
=
'git branch --no-merged'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment