summaryrefslogtreecommitdiffstats
path: root/lib/git/object.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/git/object.rb')
-rw-r--r--lib/git/object.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/git/object.rb b/lib/git/object.rb
index 7702811..c811810 100644
--- a/lib/git/object.rb
+++ b/lib/git/object.rb
@@ -48,6 +48,11 @@ module Git
Git::Log.new(@base, count).object(@sha)
end
+ # creates an archive of this object (tree)
+ def archive(file = nil, opts = {})
+ @base.lib.archive(@sha, file, opts)
+ end
+
end