Every now and then I need to merge a commit that I did not author or
review (someone else has done those things). This adds an option to addrev
to enable you to add the "Reviewed by" headers without also adding
yourself.
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6)
my $help = 0;
my $haveprnum = 0;
my $trivial = 0;
+my $useself = 1;
my $my_email;
$args .= "--trivial ";
} elsif (/^--verbose$/) {
$args .= "--verbose ";
+ } elsif (/^--noself$/) {
+ $useself = 0;
} elsif (/^--myemail=(.+)$/) {
$my_email = $1;
} elsif (/^--nopr$/) {
die "Need either --prnum or --nopr flag" unless $haveprnum;
-if (!defined $my_email) {
- $my_email = `git config --get user.email`;
-}
+if ($useself) {
+ if (!defined $my_email) {
+ $my_email = `git config --get user.email`;
+ }
-$args .= "--myemail=$my_email ";
+ $args .= "--myemail=$my_email ";
+}
system("git filter-branch -f --tag-name-filter cat --msg-filter \"gitaddrev $args\" $filterargs");