diff options
author | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-14 10:24:22 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.corp.reactrix.com> | 2007-11-14 10:24:22 -0800 |
commit | df27b5e7d6cb210b5a0870eb671a983336fb95c7 (patch) | |
tree | b2e1c449e04de4adb7048ee84e02c1cab50557e4 /lib/git/base.rb | |
parent | cbf72e3bfd1f62b35cc2db623be531f7f9c9275c (diff) | |
download | third_party-ruby-git-df27b5e7d6cb210b5a0870eb671a983336fb95c7.tar.gz third_party-ruby-git-df27b5e7d6cb210b5a0870eb671a983336fb95c7.tar.xz third_party-ruby-git-df27b5e7d6cb210b5a0870eb671a983336fb95c7.zip |
added 'archive' and tests
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 |