]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/cook: more auto-transition of states
authorJunio C Hamano <gitster@pobox.com>
Fri, 10 Feb 2017 22:18:20 +0000 (14:18 -0800)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Feb 2017 22:18:20 +0000 (14:18 -0800)
Just like "Will merge to 'next'" is automatically promoted to "Will
merge to 'master'" once the topic is merged to 'next', transition
two more states automatically when a topic is merged to 'next'.
"Will merge to and cook in 'next'" will become "Will cook in 'next'"
"Will merge to 'next' and then to 'master'" will become "Will merge
to 'master'".

cook

diff --git a/cook b/cook
index 0035d6565878335407d317f2e2f575b7217d10d6..7afa1e21e97ac275dccf8d2e5941653585135d4f 100755 (executable)
--- a/cook
+++ b/cook
@@ -557,6 +557,8 @@ sub tweak_willdo {
        $desc =~ s/\n<<\n.*//s;
        if ($desc =~ /^  \(merged to 'next'/m) {
                $text =~ s/^ Will merge to 'next'\.$/ Will merge to 'master'./m;
+               $text =~ s/^ Will merge to and then cook in 'next'\.$/ Will cook in 'next'./m;
+               $text =~ s/^ Will merge to 'next' and then to 'master'\.$/ Will merge to 'master'./m;
        }
        $td->{'text'} = $text;
 }