From 236834f1ee54cc62335de0650b8ad95835b3cb1b Mon Sep 17 00:00:00 2001 From: "yanick@babyl.dyndns.org" Date: Thu, 31 Jul 2008 19:05:00 -0400 Subject: [PATCH] quickly create summary for cil-add Takes the arguments given to git add and use them as the default summary field Signed-off-by: Yanick Champoux --- bin/cil | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/cil b/bin/cil index f469733..59cae11 100755 --- a/bin/cil +++ b/bin/cil @@ -263,13 +263,14 @@ sub cmd_steal { } sub cmd_add { - my ($cil, undef, $issue_name) = @_; + my ($cil, undef, @argv ) = @_; CIL::Utils->ensure_interactive(); my $user = user($cil); my $issue = CIL::Issue->new('tmpname'); + $issue->Summary( join ' ', @argv ); $issue->Status('New'); $issue->CreatedBy( $user ); $issue->Description("Description ..."); @@ -1174,9 +1175,10 @@ and Label fields. Shows each issue with more information. You may filter on both the Status and Label fields. -=item add +=item add [summary] -Adds an issues after you have edited the input. +Adds an issues after you have edited the input. Text passed +after 'add' will be used as the bug summary line. =item show ISSUE -- 2.39.5