Re: gitweb filter for patches by a specific person in a specific timeframe

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Kai Blin <kai.blin@...>
Cc: <git@...>
Date: Monday, August 28, 2006 - 2:16 pm

On Mon, Aug 28, 2006 at 02:59:21PM +0200, Kai Blin wrote:


You can create an mbox of all of the changes you made. Unfortunately
git-rev-list doesn't do author/committer matching, so you'll need a
short perl script:

-- >8 --
$ cat >match-who.pl <<'EOF'
#!/usr/bin/perl

my $name = shift;
my $match = qr/$name/i;

my $commit;
while(<>) {
  chomp;
  next unless $_;
  next if /^\s/;
  my ($k, $v) = split / /, $_, 2;
  if($k eq 'commit') {
    $commit = $v;
  }
  if($commit && ($k eq 'author' || $k eq 'committer') && $v =~ $match) {
    print "$commit\n";
    $commit = undef;
  }
}
-- >8 --

Then you should be able to do:
$ git-rev-list --pretty=raw master |
  perl match-who.pl kai.blin@gmail.com |
  git-diff-tree -p --stdin --pretty=email \
  > my-patches

You can either look through that, or you can try applying the patches
with git-am (though if your patches depend on changes not by you that
happened in the intervening time, you'll probably have some rejects).

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: gitweb filter for patches by a specific person in a spec..., Jeff King, (Mon Aug 28, 2:16 pm)