This options allows one to set the description text of a branch.
Signed-off-by: Catalin Marinas <catalin.marinas@gmail.com>
make_option('--delete',
help = 'delete an existing development branch',
action = 'store_true'),
make_option('--delete',
help = 'delete an existing development branch',
action = 'store_true'),
+ make_option('-d', '--description',
+ help = 'set the branch description'),
make_option('--force',
help = 'force a delete when the series is not empty',
action = 'store_true'),
make_option('--force',
help = 'force a delete when the series is not empty',
action = 'store_true'),
+ elif options.description is not None:
+
+ if len(args) == 0:
+ branch_name = crt_series.get_branch()
+ elif len(args) == 1:
+ branch_name = args[0]
+ else:
+ parser.error('incorrect number of arguments')
+ branch = stack.Series(branch_name)
+
+ if not branch.is_initialised():
+ raise CmdException, 'Branch "%s" is not controlled by StGIT' \
+ % branch_name
+
+ branch.set_description(options.description)
+
+ return
+
elif len(args) == 1:
if __is_current_branch(args[0]):
elif len(args) == 1:
if __is_current_branch(args[0]):