diff options
Diffstat (limited to 'lib/git/base.rb')
-rw-r--r-- | lib/git/base.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |