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.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb
index eded12d..9be9fec 100644
--- a/lib/git/base.rb
+++ b/lib/git/base.rb
@@ -107,9 +107,9 @@ module Git
def object(objectish)
Git::Object.new(self, objectish)
end
- alias_method :tree, :object
- alias_method :commit, :object
- alias_method :blob, :object
+ alias_method :gtree, :object
+ alias_method :gcommit, :object
+ alias_method :gblob, :object
def log(count = 30)
@@ -140,6 +140,15 @@ module Git
def add(path = '.')
self.lib.add(path)
end
+
+ def commit(message, opts = {})
+ self.lib.commit(message, opts)
+ end
+
+ def commit_all(message, opts = {})
+ opts = {:add_all => true}.merge(opts)
+ self.lib.commit(message, opts)
+ end
# convenience methods