Skip to content

Commit cfae4b3

Browse files
committed
Git: Expose archive as a static method
1 parent 42b2abd commit cfae4b3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/git.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,10 @@ def self.ls_remote(location=nil)
149149
Git::Lib.new.ls_remote(location)
150150
end
151151

152+
def self.archive(sha, file, options = {})
153+
Git::Lib.new.archive(sha, file, options)
154+
end
155+
152156
# open an existing git working directory
153157
#
154158
# this will most likely be the most common way to create

0 commit comments

Comments
 (0)