X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/05d593c088d335e86573a2d4bc63ff308bde759b..6ad48e4898f40d58a236de38f0f49a9f8bfb7ab2:/stgit/commands/new.py diff --git a/stgit/commands/new.py b/stgit/commands/new.py index 9efecc1..c968eaf 100644 --- a/stgit/commands/new.py +++ b/stgit/commands/new.py @@ -39,6 +39,9 @@ options = [make_option('-m', '--message', make_option('--force', help = 'proceed even if there are local changes', 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', @@ -63,11 +66,14 @@ def func(parser, options, args): check_local_changes() check_conflicts() check_head_top_equal() + # No local changes -> no patch to show + options.showpatch = False if options.author: options.authname, options.authemail = name_email(options.author) crt_series.new_patch(args[0], message = options.message, + show_patch = options.showpatch, author_name = options.authname, author_email = options.authemail, author_date = options.authdate,