Permalink
Browse files

add support for pruning remote branches from the origin

  • Loading branch information...
1 parent 541da0d commit 61096562c88c53ba68b154a20f81919049989958 Renée De Voursney committed Apr 7, 2011
Showing with 10 additions and 1 deletion.
  1. +2 −0 README.rdoc
  2. +8 −1 lib/grb.rb
View
@@ -21,6 +21,8 @@
$ grb push [branch] [--explain]
* create new branch `branch`
$ grb new [branch] [--explain]
+ * prune dead remote branches
+ $ grb prune
Copyright (c) 2009-present MIT
View
@@ -91,7 +91,14 @@ class Grb
:commands => [
'"#{GIT} remote rm #{branch}"',
]
- }
+ },
+
+ :prune => {
+ :desc => "=> prunes the remote branches from the list.",
+ :commands => [
+ '"#{GIT} remote prune #{origin}"',
+ ]
+ }
}
def self.parse(opt)

0 comments on commit 6109656

Please sign in to comment.