mirror of
https://github.com/tj/git-extras.git
synced 2026-09-12 00:16:27 -04:00
refactor(delete-merged-branches): rm -n1 from xargs, fmt pipes (#1233)
This commit is contained in:
parent
9d6319becb
commit
99207eee8e
|
|
@ -3,5 +3,5 @@
|
|||
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
|
||||
echo "$branches" | xargs git branch -d
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue