summaryrefslogtreecommitdiff
path: root/gbp/git/repository.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2013-09-17 14:47:21 +0300
committerJun Wang <junbill.wang@samsung.com>2016-01-27 04:57:48 +0800
commit8c4c1d48f00e69f2eb40995fd2e8f8f78f7cbcd1 (patch)
treeafad410cbc7bf70023755506848931e5dde0137a /gbp/git/repository.py
parent2069fafe81d0cad68fd71b858b10c538694ccca9 (diff)
downloadgit-buildpackage-8c4c1d48f00e69f2eb40995fd2e8f8f78f7cbcd1.tar.gz
git-buildpackage-8c4c1d48f00e69f2eb40995fd2e8f8f78f7cbcd1.tar.bz2
git-buildpackage-8c4c1d48f00e69f2eb40995fd2e8f8f78f7cbcd1.zip
GitRepository.archive: add 'paths' option
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/git/repository.py')
-rw-r--r--gbp/git/repository.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 5d662227..6b21c252 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1834,7 +1834,7 @@ class GitRepository(object):
return result
#}
- def archive(self, format, prefix, output, treeish):
+ def archive(self, format, prefix, output, treeish, paths=None):
"""
Create an archive from a treeish
@@ -1847,6 +1847,8 @@ class GitRepository(object):
@type output: C{str} or C{None}
@param treeish: the treeish to create the archive from
@type treeish: C{str}
+ @param paths: List of paths to include in the archive
+ @type paths: C{list} of C{str}
@return: archive data as a generator object
@rtype: C{None} or C{generator} of C{str}