help = 'generate a new commit for the current patch'
-usage = """%prog [options]
+usage = """%prog [options] [<files...>]
Include the latest tree changes in the current patch. This command
generates a new GIT commit object with the patch details, the previous
def func(parser, options, args):
- if len(args) != 0:
- parser.error('incorrect number of arguments')
-
- if config.has_option('stgit', 'autoresolved'):
- autoresolved = config.get('stgit', 'autoresolved')
- else:
- autoresolved = 'no'
+ autoresolved = config.get('stgit', 'autoresolved')
if autoresolved != 'yes':
check_conflicts()
if autoresolved == 'yes':
resolved_all()
- crt_series.refresh_patch(message = options.message,
+ crt_series.refresh_patch(files = args,
+ message = options.message,
edit = options.edit,
show_patch = options.showpatch,
author_name = options.authname,