Meta/cook: pick up more key phrases

Junio C Hamano committed Oct 6, 2011 at 14:44 UTC c5971de8248397e2230641d0e05519dc06b66cb1
1 file changed +6 -6
cook
+6 -6
@@ -630,18 +630,18 @@ sub wildo {
630 $topic->[4]++;
631 }
632 next if (/^ /);
633 - if (defined $topic &&
634 - /Will (?:\S+ ){0,2}(merge|drop|discard|cook)[. ]/i) {
633 + next unless defined $topic;
634 + if (/^Will (?:\S+ ){0,2}(merge|drop|discard|cook|kick)[,. ]/ ||
635 + /^Not urgent/ ||
636 + /^Needs? /) {
637 wildo_queue(\%what, $_, $topic);
638 $topic = undef;
639 }
638 - if (defined $topic &&
639 - /^Not urgent;/) {
640 + if (/^Not urgent;/) {
641 wildo_queue(\%what, $_, $topic);
642 $topic = undef;
643 }
643 - if (defined $topic &&
644 - /Originally merged to 'next' on ([-0-9]+)/) {
644 + if (/Originally merged to 'next' on ([-0-9]+)/) {
645 $topic->[1] = $1;
646 }
647 }