projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2069faf
)
GitRepository.archive: add 'paths' option
author
Markus Lehtonen
<markus.lehtonen@linux.intel.com>
Tue, 17 Sep 2013 11:47:21 +0000
(14:47 +0300)
committer
Jun Wang
<junbill.wang@samsung.com>
Tue, 26 Jan 2016 20:57:48 +0000
(
04:57
+0800)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
gbp/git/repository.py
patch
|
blob
|
history
diff --git
a/gbp/git/repository.py
b/gbp/git/repository.py
index
5d66222
..
6b21c25
100644
(file)
--- 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}