mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
Ignore checked-out branches on different worktrees
This commit is contained in:
parent
a62a67ef5f
commit
c35c84a279
|
|
@ -1,6 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
branches=$(git branch --no-color --merged | grep -v "\*" | grep -v $(git_extra_default_branch) | grep -v svn)
|
||||
branches=$(git branch --no-color --merged | grep -vE "^(\*|\+)" | grep -v $(git_extra_default_branch) | grep -v svn)
|
||||
if [ -n "$branches" ]
|
||||
then
|
||||
echo "$branches" | xargs -n 1 git branch -d
|
||||
|
|
|
|||
Loading…
Reference in a new issue