X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/fcee87cf868f18a3d684c3ba71232574f92c7b11..19cd0a8fe0cb7cfd0d5f784024014419ec354adf:/stgit/commands/refresh.py diff --git a/stgit/commands/refresh.py b/stgit/commands/refresh.py index 81e3066..46a7ea2 100644 --- a/stgit/commands/refresh.py +++ b/stgit/commands/refresh.py @@ -39,6 +39,8 @@ options = [make_option('-f', '--force', make_option('-m', '--message', help = 'use MESSAGE as the patch ' \ 'description'), + make_option('-a', '--author', metavar = '"NAME "', + help = 'use "NAME " as the author details'), make_option('--authname', help = 'use AUTHNAME as the author name'), make_option('--authemail', @@ -71,6 +73,9 @@ def func(parser, options, args): if not options.force: check_head_top_equal() + if options.author: + options.authname, options.authemail = name_email(options.author) + if git.local_changes() \ or not crt_series.head_top_equal() \ or options.edit or options.message \