As per bug #11977, these options should not be used directly. People
wanting a different committer should set the corresponding Git
environment variables.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
def author_options():
return _person_opts('author', 'auth')
def author_options():
return _person_opts('author', 'auth')
-def author_committer_options():
- return _person_opts('author', 'auth') + _person_opts('committer', 'comm')
-
class CompgenBase(object):
def actions(self, var): return set()
def words(self, var): return set()
class CompgenBase(object):
def actions(self, var): return set()
def words(self, var): return set()
short = 'Invoke interactive editor'),
] + (argparse.sign_options() +
argparse.message_options(save_template = True) +
short = 'Invoke interactive editor'),
] + (argparse.sign_options() +
argparse.message_options(save_template = True) +
- argparse.author_committer_options() + argparse.diff_opts_option())
+ argparse.author_options() + argparse.diff_opts_option())
directory = common.DirectoryHasRepositoryLib()
directory = common.DirectoryHasRepositoryLib()
cd, failed_diff = edit.auto_edit_patch(
stack.repository, cd, msg = options.message, contains_diff = True,
cd, failed_diff = edit.auto_edit_patch(
stack.repository, cd, msg = options.message, contains_diff = True,
- author = options.author, committer = options.committer,
+ author = options.author, committer = lambda p: p,
sign_str = options.sign_str)
if options.save_template:
sign_str = options.sign_str)
if options.save_template:
short = 'Use AUTHEMAIL as the author e-mail'),
opt('--authdate',
short = 'Use AUTHDATE as the author date'),
short = 'Use AUTHEMAIL as the author e-mail'),
opt('--authdate',
short = 'Use AUTHDATE as the author date'),
- opt('--commname',
- short = 'Use COMMNAME as the committer name'),
- opt('--commemail',
- short = 'Use COMMEMAIL as the committer e-mail'),
] + argparse.sign_options()
directory = DirectoryHasRepository(log = True)
] + argparse.sign_options()
directory = DirectoryHasRepository(log = True)
if not message:
can_edit = False
if not message:
can_edit = False
- committer_name = committer_email = None
-
if options.author:
options.authname, options.authemail = name_email(options.author)
if options.author:
options.authname, options.authemail = name_email(options.author)
author_email = options.authemail
if options.authdate:
author_date = options.authdate
author_email = options.authemail
if options.authdate:
author_date = options.authdate
- if options.commname:
- committer_name = options.commname
- if options.commemail:
- committer_email = options.commemail
crt_series.new_patch(patch, message = message, can_edit = False,
author_name = author_name,
author_email = author_email,
crt_series.new_patch(patch, message = message, can_edit = False,
author_name = author_name,
author_email = author_email,
- author_date = author_date,
- committer_name = committer_name,
- committer_email = committer_email)
+ author_date = author_date)
if not diff:
out.warn('No diff found, creating empty patch')
if not diff:
out.warn('No diff found, creating empty patch')
-options = (argparse.author_committer_options()
+options = (argparse.author_options()
+ argparse.message_options(save_template = True)
+ argparse.sign_options())
+ argparse.message_options(save_template = True)
+ argparse.sign_options())
if options.message != None:
cd = cd.set_message(options.message)
if options.message != None:
cd = cd.set_message(options.message)
- # Modify author and committer data.
- cd = (cd.set_author(options.author(cd.author))
- .set_committer(options.committer(cd.committer)))
+ # Modify author data.
+ cd = cd.set_author(options.author(cd.author))
# Add Signed-off-by: or similar.
if options.sign_str != None:
# Add Signed-off-by: or similar.
if options.sign_str != None: