From: yanick@babyl.dyndns.org Date: Thu, 31 Jul 2008 23:05:00 +0000 (-0400) Subject: quickly create summary for cil-add X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=236834f1ee54cc62335de0650b8ad95835b3cb1b;p=cil.git 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 --- 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