refactor(delete-merged-branches): rm -n1 from xargs, fmt pipes#1233
refactor(delete-merged-branches): rm -n1 from xargs, fmt pipes#1233
-n1 from xargs, fmt pipes#1233Conversation
xargs -r to avoid ifxargs -r to avoid if, and etc...
|
Thank you for the PR! However, Since The previous If you want to avoid the Removing |
bin/git-delete-merged-branches
Outdated
| grep -vE "^(\*|\+)" | | ||
| grep -v "$(git_extra_default_branch)" | | ||
| grep -v svn | | ||
| xargs -r git branch -d |
There was a problem hiding this comment.
The FreeBSD
version of xargs does not run the utility argument on empty input, but it supports the -r option for
command-line compatibility with GNU xargs, but the -r option does nothing in the FreeBSD version of
xargs.
Quoted from my man xargs on Mac.
This reverts commit faf16ef.
xargs -r to avoid if, and etc...-n1 from xargs, fmt pipes
reverts git-delete-merged-branches: replace xargs -r option #654; see this-n1, becausebranch -dis variadic (IDK since when)