|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] git-filter-branch automatic CC adding script
Ian Jackson writes ("[PATCH 0/2] libxc: Fix some whitespace/tab-width
problems"):
> I have here two interrelated whitespace formatting fixes for libxc:
>
> 1/2 libxc: Remove hard tabs which ought to be 4 spaces
> 2/2 libxc: Remove "tab-width: 8" from emacs local variables
FYI I used the script below to add some missing CCs to this and my
other series.
#!/usr/bin/perl -w
#
# usage
# git-filter-branch --msg-filter \
# ".../auto-cc-maintainers `pwd`/xen.git xen-devel@xxxxxxxxxxxxx"
#
# (args are things never to add to CCs)
use strict;
use IO::File;
die unless @ARGV;
die if $ARGV[0] =~ m/^-/;
our %got;
my $xendir = shift @ARGV;
chdir $xendir or die "$xendir: $!";
$got{lc $_}++ foreach @ARGV;
while (<STDIN>) {
print or die $!;
$got{lc $1}++ if m/^[-0-9a-z]+: (.*)$/i;
}
my $anyyet=0;
open CCS, "git-show $ENV{GIT_COMMIT} | scripts/get_maintainer.pl |" or die $!;
while (<CCS>) {
chomp;
next if $got{lc $_};
print STDERR "\n" if !$anyyet++;
print STDERR "$ENV{GIT_COMMIT} ADDING $_\n";
print "CC: $_\n" or die $!;
}
$!=0; $?=0; close CCS or die "$? $!";
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |