summaryrefslogtreecommitdiffstats
path: root/lib/git/base.rb
diff options
context:
space:
mode:
authorscott Chacon <schacon@agadorsparticus.(none)>2007-11-23 11:50:02 -0800
committerscott Chacon <schacon@agadorsparticus.(none)>2007-11-23 11:50:02 -0800
commit3fddf300bd33b356540bee50ae17590ea9b61341 (patch)
tree8b17ce067dd67dc418ed06d023505523f243cb90 /lib/git/base.rb
parentf1366b39891402b0db9de661ad181089bfd79053 (diff)
downloadthird_party-ruby-git-3fddf300bd33b356540bee50ae17590ea9b61341.tar.gz
third_party-ruby-git-3fddf300bd33b356540bee50ae17590ea9b61341.tar.xz
third_party-ruby-git-3fddf300bd33b356540bee50ae17590ea9b61341.zip
started the ruby-only command line git client
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r--lib/git/base.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/git/base.rb b/lib/git/base.rb
index 1820ee2..31ba9ff 100644
--- a/lib/git/base.rb
+++ b/lib/git/base.rb
@@ -429,6 +429,10 @@ module Git
self.lib.revparse(objectish)
end
+ def cat_file(objectish)
+ self.lib.object_contents(objectish)
+ end
+
# returns the name of the branch the working directory is currently on
def current_branch
self.lib.branch_current