summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2b049e1)
Signed-off-by: Karl Hasselström <kha@treskal.com>
make_option('--commname',
help = 'use COMMNAME as the committer name'),
make_option('--commemail',
make_option('--commname',
help = 'use COMMNAME as the committer name'),
make_option('--commemail',
- help = 'use COMMEMAIL as the committer e-mail')]
+ help = 'use COMMEMAIL as the committer e-mail')
+ ] + make_sign_options()
def func(parser, options, args):
def func(parser, options, args):
author_email = options.authemail,
author_date = options.authdate,
committer_name = options.commname,
author_email = options.authemail,
author_date = options.authdate,
committer_name = options.commname,
- committer_email = options.commemail)
+ committer_email = options.commemail,
+ sign_str = options.sign_str)
top = None, bottom = None, commit = True,
author_name = None, author_email = None, author_date = None,
committer_name = None, committer_email = None,
top = None, bottom = None, commit = True,
author_name = None, author_email = None, author_date = None,
committer_name = None, committer_email = None,
- before_existing = False):
+ before_existing = False, sign_str = None):
"""Creates a new patch, either pointing to an existing commit object,
or by creating a new commit object.
"""
"""Creates a new patch, either pointing to an existing commit object,
or by creating a new commit object.
"""
# TODO: move this out of the stgit.stack module, it is really
# for higher level commands to handle the user interaction
# TODO: move this out of the stgit.stack module, it is really
# for higher level commands to handle the user interaction
+ def sign(msg):
+ return add_sign_line(msg, sign_str,
+ committer_name or git.committer().name,
+ committer_email or git.committer().email)
if not message and can_edit:
descr = edit_file(
if not message and can_edit:
descr = edit_file(
'Please enter the description for the patch above.',
show_patch)
else:
'Please enter the description for the patch above.',
show_patch)
else: