X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/df992d5a864942d572f0235cf9bf124050f790a8..099ff6cd577fc42ae67f579316341960b9197bab:/stgit/commands/export.py diff --git a/stgit/commands/export.py b/stgit/commands/export.py index 4ea0236..549145e 100644 --- a/stgit/commands/export.py +++ b/stgit/commands/export.py @@ -54,6 +54,9 @@ options = [make_option('-n', '--numbered', make_option('-d', '--diff', help = 'append .diff to the patch names', action = 'store_true'), + make_option('-p', '--patch', + help = 'append .patch to the patch names', + action = 'store_true'), make_option('-t', '--template', metavar = 'FILE', help = 'Use FILE as a template'), make_option('-r', '--range', @@ -160,6 +163,8 @@ def func(parser, options, args): pname = p if options.diff: pname = '%s.diff' % pname + elif options.patch: + pname = '%s.patch' % pname if options.numbered: pname = '%s-%s' % (str(patch_no).zfill(zpadding), pname) pfile = os.path.join(dirname, pname)