summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
4d9fc82)
From: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Actually, simply adding the option is enough...
Restrict print_crt_patch() to the case when we didn't specify --branch (as it's
useless otherwise).
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
case the command also popping it from the stack. Note that the
'delete' operation is irreversible."""
case the command also popping it from the stack. Note that the
'delete' operation is irreversible."""
+options = [make_option('-b', '--branch',
+ help = 'use BRANCH instead of the default one')]
def func(parser, options, args):
"""Deletes a patch
def func(parser, options, args):
"""Deletes a patch
crt_series.delete_patch(args[0])
print 'Patch "%s" successfully deleted' % args[0]
crt_series.delete_patch(args[0])
print 'Patch "%s" successfully deleted' % args[0]
+
+ if not options.branch:
+ print_crt_patch()