X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/05d593c088d335e86573a2d4bc63ff308bde759b..6ad48e4898f40d58a236de38f0f49a9f8bfb7ab2:/stgit/commands/imprt.py diff --git a/stgit/commands/imprt.py b/stgit/commands/imprt.py index 9dccaf9..c6eaa04 100644 --- a/stgit/commands/imprt.py +++ b/stgit/commands/imprt.py @@ -45,6 +45,9 @@ options = [make_option('-m', '--mail', make_option('-e', '--edit', help = 'invoke an editor for the patch description', action = 'store_true'), + make_option('-s', '--showpatch', + help = 'show the patch content in the editor buffer', + action = 'store_true'), make_option('-a', '--author', metavar = '"NAME "', help = 'use "NAME " as the author details'), make_option('--authname', @@ -199,7 +202,8 @@ def func(parser, options, args): sys.stdout.flush() git.apply_patch(filename) - crt_series.refresh_patch(edit = options.edit) + crt_series.refresh_patch(edit = options.edit, + show_patch = options.showpatch) print 'done' print_crt_patch()