}
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: $!";
}
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: $!";
}
if($do_commit)
{
- run 'git', 'commit', '-F', '.commitmsg'
+ run 'git', 'commit', '--allow-empty', '-F', '.commitmsg'
or (run 'git', 'mergetool'
- and run 'git', 'commit', '-F', '.commitmsg')
+ and run 'git', 'commit', '--allow-empty', '-F', '.commitmsg')
or die "git-commit: $!";
}
}
}
if($do_commit)
{
- run 'git', 'commit', '-F', '.commitmsg'
+ run 'git', 'commit', '--allow-empty', '-F', '.commitmsg'
or (run 'git', 'mergetool'
- and run 'git', 'commit', '-F', '.commitmsg')
+ and run 'git', 'commit', '--allow-empty', '-F', '.commitmsg')
or die "git-commit: $!";
}
}
{
unshift @rlog, ['reject', $log->{order_a}[$_]];
}
- elsif(!$log->{bitmap}[$_])
+ elsif($log->{bitmap}[$_] == 0)
{
unshift @rlog, ['unmerge', $log->{order_a}[$_]];
}
"skip", handler \$skip,
"merge|m=s{,}", handler sub { run_script ['merge', $_[1]]; },
"unmerge|u=s{,}", handler sub { run_script ['unmerge', $_[1]]; },
+ "reject|r=s{,}", handler sub { run_script ['reject', $_[1]]; },
+ "unreject|U=s{,}", handler sub { run_script ['unreject', $_[1]]; },
"reset|R=s", handler sub { run_script ['reset', $_[1]]; },
"hardreset|H=s", handler sub { run_script ['hardreset', $_[1]]; },
"help|h", handler \&opt_help,