From 83165aac027bd05ef6e622b05609318e7212fd6e Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Fri, 4 May 2012 18:23:12 +0200 Subject: GitRepository.format_patches: allow to set threading format and disable it by default. --- gbp/git/repository.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 3df91fcd..2cc5edae 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 ] -- cgit v1.2.3