diff options
author | yushyin <yushyin@saga> | 2019-04-28 23:31:14 +0200 |
---|---|---|
committer | yushyin <yushyin@saga> | 2019-04-28 23:31:14 +0200 |
commit | 9a134293ecf46cd73d493b25d35239dfe05651f1 (patch) | |
tree | 0d57d2efba1a54bd947e38b91409b614b9ba9512 | |
parent | 68ae5a04e141f57017eb9653607077673924af64 (diff) | |
download | dotfiles-9a134293ecf46cd73d493b25d35239dfe05651f1.tar.gz dotfiles-9a134293ecf46cd73d493b25d35239dfe05651f1.tar.xz |
Git: Add rmbranch alias
-rw-r--r-- | git/config | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -67,3 +67,11 @@ /$rx/ && !/HEAD/ ? $_ : () \ } Git::command(qw/branch --sort=committerdate -r/) \ '" + + # rmbranch <repository> branchname deletes local und remote branch + # <repository> defaults to origin + rmbranch = !"perl -MGit -E' \ + my ($re, $br) = (@ARGV > 1? shift : q{origin}, shift // q{}); \ + Git::command_noisy(qw{branch -d}, $br); \ + Git::command_noisy(qw{push -d}, $re, $br); \ + '" |