2 # Munge a git log into log for code_swarm.
3 # Deals with oddities of ikiwiki commits, like web commits, and openids.
5 use IkiWiki::Plugin::openid;
10 my %config=IkiWiki::defaultconfig();
12 foreach (`git-log --name-status --pretty=format:'%n$sep%nr%h | %an | %ai (%aD) | x lines%n%nsubject: %s%n'`) {
13 my ($subject)=m/subject: (.*)\n/m;
14 if ($subject=~m/$config{web_commit_regexp}/) {
15 my $user = defined $2 ? "$2" : "$3";
16 my $oiduser = IkiWiki::openiduser($user);
17 if (defined $oiduser) {
18 $oiduser=~s/ \[.*\]//; # too much clutter for code_swarm
21 s/ \| [^|]+ \| / | $user | /;
23 s/subject: (.*)\n\n//m;