Commit 0e0789fb authored by Jakub Chábek's avatar Jakub Chábek Committed by Marc Cornellà
Browse files

git: delete branches in `gbda` only if there are any (#6079)

It doesn't make sense to run `git branch -d $BRANCH` if the `$BRANCH` is empty.
parent f1799de0
...@@ -50,7 +50,7 @@ alias gap='git apply' ...@@ -50,7 +50,7 @@ alias gap='git apply'
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*(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 -r -n 1 git branch -d'
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'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment