This option is similar to the '-x' one of the git-cherry-pick
command (maybe the naming is not really obvious). It appends the
imported commit id to the patch log.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
action = 'store_true'),
make_option('-p', '--parent', metavar = 'COMMITID',
help = 'use COMMITID as parent'),
action = 'store_true'),
make_option('-p', '--parent', metavar = 'COMMITID',
help = 'use COMMITID as parent'),
+ make_option('-x', '--expose',
+ help = 'append the imported commit id to the patch log',
+ action = 'store_true'),
make_option('--fold',
help = 'fold the commit object into the current patch',
action = 'store_true'),
make_option('--fold',
help = 'fold the commit object into the current patch',
action = 'store_true'),
out.done()
else:
message = commit.get_log()
out.done()
else:
message = commit.get_log()
+ if options.expose:
+ message += '(imported from commit %s)\n' % commit.get_id_hash()
author_name, author_email, author_date = \
name_email_date(commit.get_author())
author_name, author_email, author_date = \
name_email_date(commit.get_author())