]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Reintegrate: omit everything after $willdo verb
authorJunio C Hamano <gitster@pobox.com>
Thu, 23 Jun 2016 22:20:49 +0000 (15:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 23 Jun 2016 22:20:49 +0000 (15:20 -0700)
A typical entry in whats-cooking.txt begins with the description of
the topic, followed by "Will do what to this topic" declaration of
the decision (i.e. $willdo verb) and supplemental text to explain
the decision.  When we read such an entry to add to a merge log
message, we omit the line with "Will do what".

Instead, stop reading there to exclude the supplemental text from
the merge log.

Reintegrate

index 9761caff1ae50e98c5fadc275e28d202f58ad4ba..a15114a69049ddb140b86327262f02ebceebdd9e 100755 (executable)
@@ -54,7 +54,7 @@ annotate_merge () {
                                }
                                next unless ($in_section && $in_desc);
                                next if (/Originally merged to '\''next'\'' on ([-0-9]+)/);
-                               next if (wildo_match($_));
+                               last if (wildo_match($_));
                                push @msg, "$_\n";
                        }
                        return ($in_section, @msg);