diff options
Diffstat (limited to 'git')
-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); \ + '" |