[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [SCM] GNU Autoconf source repository branch, master, updated. v2.61a
From: |
Jim Meyering |
Subject: |
Re: [SCM] GNU Autoconf source repository branch, master, updated. v2.61a-341-g4380a86 |
Date: |
Tue, 22 Jan 2008 14:34:32 +0100 |
Benoit Sigoure <address@hidden> wrote:
> Off topic: How did you hack the script git/contrib/hooks/post-receive-
> email so that it uses the email of the person who pushed in the From
> field?
Hi Benoit,
Here is the definition of the variable used to expand "From: $committer":
(from an earlier version of the script you mention)
+ # The committer will be obtained from the latest existing rev; so
+ # for a deletion it will be the oldrev, for the others, then newrev
+ committer=$(git show --pretty=full -s $rev | sed -ne "s/^Commit: //p" |
+ sed -ne 's/\(.*\) </"\1" </p')
That code has since been removed from git's
contrib/hooks/post-receive-email script.