diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 10:43:27 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-11 10:43:27 -0800 |
commit | a4fa110279ea28873fe1e4df10c89ddc591046b4 (patch) | |
tree | 60e08ccf8caca2fe428dee76c06c102cc54bc98b /lib/git/base.rb | |
parent | a1237671ba3ec38f5b123ee6600e4352dc03196b (diff) | |
download | third_party-ruby-git-a4fa110279ea28873fe1e4df10c89ddc591046b4.tar.gz third_party-ruby-git-a4fa110279ea28873fe1e4df10c89ddc591046b4.tar.xz third_party-ruby-git-a4fa110279ea28873fe1e4df10c89ddc591046b4.zip |
added the commit(), changed base.commit, base.tree, base.blob to gcommit, gtree, gblob
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r-- | lib/git/base.rb | 15 |
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 |