aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2012-05-04 18:23:12 +0200
committerGuido Günther <agx@sigxcpu.org>2012-05-04 18:27:30 +0200
commit83165aac027bd05ef6e622b05609318e7212fd6e (patch)
tree1dbbcee9368d29a87e0f2b12273b43deab4dfb3f
parentf495df9857d9738cb7ed2200d3124fca6372f990 (diff)
GitRepository.format_patches: allow to set threading format
and disable it by default.
-rw-r--r--gbp/git/repository.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gbp/git/repository.py b/gbp/git/repository.py
index 3df91fc..2cc5eda 100644
--- a/gbp/git/repository.py
+++ b/gbp/git/repository.py
@@ -1115,7 +1115,7 @@ class GitRepository(object):
#{ Patches
- def format_patches(self, start, end, output_dir, signature=True):
+ def format_patches(self, start, end, output_dir, signature=True, thread=None):
"""
Output the commits between start and end as patches in output_dir
"""
@@ -1123,6 +1123,7 @@ class GitRepository(object):
'-o', output_dir)
options.add_cond(not signature, '--no-signature')
options.add('%s...%s' % (start, end))
+ options.add_cond(thread, '--thread=%s' % thread, '--no-thread')
output, ret = self._git_getoutput('format-patch', options.args)
return [ line.strip() for line in output ]