summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
de4c9d2)
This option creates a new patch even if there are local changes in the
tree. It is useful if one starts modifying the tree but forgot to create
a patch for it.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
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('--force',
+ help = 'proceed even if there are local changes',
+ action = 'store_true'),
make_option('-a', '--author', metavar = '"NAME <EMAIL>"',
help = 'use "NAME <EMAIL>" as the author details'),
make_option('--authname',
make_option('-a', '--author', metavar = '"NAME <EMAIL>"',
help = 'use "NAME <EMAIL>" as the author details'),
make_option('--authname',
if len(args) != 1:
parser.error('incorrect number of arguments')
if len(args) != 1:
parser.error('incorrect number of arguments')
- check_local_changes()
- check_conflicts()
- check_head_top_equal()
+ if not options.force:
+ check_local_changes()
+ check_conflicts()
+ check_head_top_equal()
if options.author:
options.authname, options.authemail = name_email(options.author)
if options.author:
options.authname, options.authemail = name_email(options.author)