]> git.mjollnir.org Git - cil.git/commitdiff
quickly create summary for cil-add
authoryanick@babyl.dyndns.org <yanick@babyl.dyndns.org>
Thu, 31 Jul 2008 23:05:00 +0000 (19:05 -0400)
committerAndrew Chilton <andy@chilts.com>
Thu, 31 Jul 2008 23:29:53 +0000 (01:29 +0200)
Takes the arguments given to git add and
use them as the default summary field

Signed-off-by: Yanick Champoux <yanick@babyl.dyndns.org>
bin/cil

diff --git a/bin/cil b/bin/cil
index f469733395e3766659f14a5d6662f4df408e969e..59cae116e1f9f77058d829f273493e903dc4f207 100755 (executable)
--- 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