X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/6ad48e4898f40d58a236de38f0f49a9f8bfb7ab2..539fb2921209bd3fd6165baa057f76f474aa5cb4:/stgit/commands/new.py diff --git a/stgit/commands/new.py b/stgit/commands/new.py index c968eaf..2c1e94b 100644 --- a/stgit/commands/new.py +++ b/stgit/commands/new.py @@ -29,16 +29,14 @@ usage = """%prog [options] Create a new, empty patch and make it the topmost one. If the '--message' option is not passed, an editor is invoked with the -.git/patchdescr.tmpl file used a as template, together with generated -lines. By default, if there are local changes in the working tree, the -command fails and a 'refresh' command is needed. This behaviour can be -overridden with the '--force' option.""" +.git/patchdescr.tmpl, ~/.stgit/templates/patchdescr.tmpl or +/usr/share/stgit/templates/patchdescr.tmpl file used a as template, +together with generated lines. By default, the local changes in the +working tree are not included in the patch. A 'refresh' command is +needed for this.""" options = [make_option('-m', '--message', help = 'use MESSAGE as the patch description'), - 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'), @@ -62,12 +60,8 @@ def func(parser, options, args): if len(args) != 1: parser.error('incorrect number of arguments') - if not options.force: - check_local_changes() - check_conflicts() - check_head_top_equal() - # No local changes -> no patch to show - options.showpatch = False + check_conflicts() + check_head_top_equal() if options.author: options.authname, options.authemail = name_email(options.author)