~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add "name <email>" parsing for simpler commands
[stgit]
/
stgit
/
commands
/
new.py
diff --git
a/stgit/commands/new.py
b/stgit/commands/new.py
index
1779d9c
..
c018195
100644
(file)
--- a/
stgit/commands/new.py
+++ b/
stgit/commands/new.py
@@
-29,6
+29,8
@@
usage = '%prog [options] <name>'
options = [make_option('-m', '--message',
help = 'use MESSAGE as the patch description'),
options = [make_option('-m', '--message',
help = 'use MESSAGE as the patch description'),
+ make_option('-a', '--author', metavar = '"NAME <EMAIL>"',
+ help = 'use "NAME <EMAIL>" as the author details'),
make_option('--authname',
help = 'use AUTHNAME as the author name'),
make_option('--authemail',
make_option('--authname',
help = 'use AUTHNAME as the author name'),
make_option('--authemail',
@@
-51,6
+53,9
@@
def func(parser, options, args):
check_conflicts()
check_head_top_equal()
check_conflicts()
check_head_top_equal()
+ if options.author:
+ options.authname, options.authemail = name_email(options.author)
+
crt_series.new_patch(args[0], message = options.message,
author_name = options.authname,
author_email = options.authemail,
crt_series.new_patch(args[0], message = options.message,
author_name = options.authname,
author_email = options.authemail,