From df27b5e7d6cb210b5a0870eb671a983336fb95c7 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Wed, 14 Nov 2007 10:24:22 -0800 Subject: added 'archive' and tests --- lib/git/base.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/git/base.rb') diff --git a/lib/git/base.rb b/lib/git/base.rb index e7eaf22..6fb8adb 100644 --- a/lib/git/base.rb +++ b/lib/git/base.rb @@ -311,6 +311,11 @@ module Git tag(tag_name) end + # creates an archive file of the given tree-ish + def archive(treeish, file = nil, opts = {}) + self.object(treeish).archive(file, opts) + end + # repacks the repository def repack self.lib.repack -- cgit