]> de.git.xonotic.org Git - xonotic/div0-gittools.git/commitdiff
when rejecting/unrejecting, say so in the commit message
authorRudolf Polzer <divverent@alientrap.org>
Fri, 22 Apr 2011 06:21:52 +0000 (08:21 +0200)
committerRudolf Polzer <divverent@alientrap.org>
Fri, 22 Apr 2011 06:21:52 +0000 (08:21 +0200)
git-branch-manager

index 82720c987288ce649b4c76d2580d71c8dd998f82..5e771ccd4e420740519e0e735122dc5709af0a78 100755 (executable)
@@ -137,7 +137,7 @@ sub reject_commit($)
                }
                open my $fh, '>', '.commitmsg'
                        or die ">.commitmsg: $!";
-               print $fh "$cmsg" . "::stable-branch::reject=$r\n"
+               print $fh "REJECT\n$cmsg" . "::stable-branch::reject=$r\n"
                        or die ">.commitmsg: $!";
                close $fh
                        or die ">.commitmsg: $!";
@@ -183,7 +183,7 @@ sub unreject_commit($)
                }
                open my $fh, '>', '.commitmsg'
                        or die ">.commitmsg: $!";
-               print $fh "$cmsg" . "::stable-branch::unreject=$r\n"
+               print $fh "UNREJECT\n$cmsg" . "::stable-branch::unreject=$r\n"
                        or die ">.commitmsg: $!";
                close $fh
                        or die ">.commitmsg: $!";
@@ -320,7 +320,7 @@ sub rebase_log($$)
                {
                        unshift @rlog, ['reject', $log->{order_a}[$_]];
                }
-               elsif(!$log->{bitmap}[$_])
+               elsif($log->{bitmap}[$_] == 0)
                {
                        unshift @rlog, ['unmerge', $log->{order_a}[$_]];
                }