summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r--lib/git/base.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb
index 46c75eb..342d535 100644
--- a/lib/git/base.rb
+++ b/lib/git/base.rb
@@ -124,6 +124,11 @@ module Git
Git::Branches.new(self)
end
+ def branch(branch_name = 'master')
+ Git::Branch.new(self, branch_name)
+ end
+
+
def lib
Git::Lib.new(self)
end
@@ -162,6 +167,10 @@ module Git
opts = {:add_all => true}.merge(opts)
self.lib.commit(message, opts)
end
+
+ def checkout(branch, opts = {})
+ self.lib.checkout(branch, opts)
+ end
# convenience methods