diff options
author | Guido Günther <agx@sigxcpu.org> | 2012-05-04 18:23:12 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2012-05-04 18:27:30 +0200 |
commit | 83165aac027bd05ef6e622b05609318e7212fd6e (patch) | |
tree | 1dbbcee9368d29a87e0f2b12273b43deab4dfb3f | |
parent | f495df9857d9738cb7ed2200d3124fca6372f990 (diff) |
GitRepository.format_patches: allow to set threading format
and disable it by default.
-rw-r--r-- | gbp/git/repository.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 ] |