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
index f3afbd39b4..9eca27f1e3 100755
--- a/cook
+++ b/cook
@@ -630,18 +630,18 @@ sub wildo {
$topic->[4]++;
}
next if (/^ /);
- if (defined $topic &&
- /Will (?:\S+ ){0,2}(merge|drop|discard|cook)[. ]/i) {
+ next unless defined $topic;
+ if (/^Will (?:\S+ ){0,2}(merge|drop|discard|cook|kick)[,. ]/ ||
+ /^Not urgent/ ||
+ /^Needs? /) {
wildo_queue(\%what, $_, $topic);
$topic = undef;
}
- if (defined $topic &&
- /^Not urgent;/) {
+ if (/^Not urgent;/) {
wildo_queue(\%what, $_, $topic);
$topic = undef;
}
- if (defined $topic &&
- /Originally merged to 'next' on ([-0-9]+)/) {
+ if (/Originally merged to 'next' on ([-0-9]+)/) {
$topic->[1] = $1;
}
}