summaryrefslogtreecommitdiffstats
path: root/lib/git/branches.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/branches.rb')
-rw-r--r--lib/git/branches.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/git/branches.rb b/lib/git/branches.rb
new file mode 100644
index 0000000..d664d59
--- /dev/null
+++ b/lib/git/branches.rb
@@ -0,0 +1,16 @@
+module Git
+
+ # object that holds all the available branches
+ class Branches
+ include Enumerable
+
+ @base = nil
+ @branches = nil
+
+ def initialize(base)
+ @base = base
+ @branches = @base.lib.branches_all
+ end
+
+ end
+end \ No newline at end of file