aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/git/repository.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r--gbp/git/repository.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 3670a679..6af56df6 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1131,6 +1131,19 @@ class GitRepository(object):
#}
def archive(self, format, prefix, output, treeish, **kwargs):
+ """
+ Create an archive from a treeish
+
+ @param format: the type of archive to create, e.g. 'tar.gz'
+ @type format: C{str}
+ @param prefix: prefix to prepend to each filename in the archive
+ @type prefix: C{str}
+ @param output: the name of the archive to create
+ @type output: C{str}
+ @param treeish: the treeish to create the archive from
+ @type treeish: C{str}
+ @param kwargs: additional commandline options passed to git-archive
+ """
args = [ '--format=%s' % format, '--prefix=%s' % prefix,
'--output=%s' % output, treeish ]
out, ret = self.__git_getoutput('archive', args, **kwargs)