Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
* stgit/main.py (export): Add --template option to use a different
file as the export template rather than the default one
+ (delete): Check for local changes only of the current patch is
+ removed
2005-07-09 Catalin Marinas <catalin.marinas@gmail.com>
if len(args) != 1:
parser.error('incorrect number of arguments')
- __check_local_changes()
- __check_conflicts()
- __check_head_top_equal()
+ if args[0] == crt_series.get_current():
+ __check_local_changes()
+ __check_conflicts()
+ __check_head_top_equal()
crt_series.delete_patch(args[0])
print 'Patch "%s" successfully deleted' % args[0]