diff options
author | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-09 13:11:22 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-09 13:11:22 -0800 |
commit | 9d59d2965184964ab6662282ef5f9ceac2c58552 (patch) | |
tree | f8dd8bf4004eb9403f9ffe2b5c5c708ef877895a /lib/git/base.rb | |
parent | ab20a674e50268b6c541949c746d77b16a26d15c (diff) | |
download | third_party-ruby-git-9d59d2965184964ab6662282ef5f9ceac2c58552.tar.gz third_party-ruby-git-9d59d2965184964ab6662282ef5f9ceac2c58552.tar.xz third_party-ruby-git-9d59d2965184964ab6662282ef5f9ceac2c58552.zip |
added branches, more log stuff, better tests, changed the log api a bit
added tests for Git::Lib, started Git::Diff development
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r-- | lib/git/base.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb index d552432..8170065 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -54,6 +54,10 @@ module Git def object(objectish) Git::Object.new(self, objectish) end + alias_method :tree, :object + alias_method :commit, :object + alias_method :blob, :object + def log(count = 30) Git::Log.new(self, count) @@ -67,6 +71,10 @@ module Git Git::Lib.new(self) end + def grep(string) + self.object('HEAD').grep(string) + end + # convenience methods def revparse(objectish) |