From a4fa110279ea28873fe1e4df10c89ddc591046b4 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sun, 11 Nov 2007 10:43:27 -0800 Subject: added the commit(), changed base.commit, base.tree, base.blob to gcommit, gtree, gblob --- lib/git/base.rb | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'lib/git/base.rb') 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 -- cgit