Gnus development mailing list
 help / color / mirror / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: ding@gnus.org
Subject: Re: [ding-cvslog-owner@lists.math.uh.edu] Stalled post to ding-cvslog
Date: Tue, 23 Nov 2010 05:14:49 -0600	[thread overview]
Message-ID: <87y68knvfa.fsf@lifelogs.com> (raw)
In-Reply-To: <87bp5xboyv.fsf@turtle.gmx.de>

On Wed, 10 Nov 2010 08:46:32 +0100 Sven Joachim <svenjoac@gmx.de> wrote: 

SJ> On 2010-11-09 22:52 +0100, Ted Zlatanov wrote:
>> On Tue, 09 Nov 2010 20:28:49 +0100 Sven Joachim <svenjoac@gmx.de> wrote: 
>> 
SJ> On 2010-11-09 20:08 +0100, Lars Magne Ingebrigtsen wrote:
>>>> Julien Danjou <julien@danjou.info> writes:
>>>> 
>>>>> There's one:
>>>>> 
>>>>> % git show --pretty=full 00cd64463c5cf16d6aa0611c7957cfe94e6d5b0d | head -3
>>>>> commit 00cd64463c5cf16d6aa0611c7957cfe94e6d5b0d
>>>>> Author: Sven Joachim <svenjoac@gmx.de>
>>>>> Commit: Katsumi Yamaoka <yamaoka@jpl.org>
>>>> 
>>>> Right.  But the Commit line wasn't even in the mail, which makes it
>>>> rather difficult for the mailing list software to use that.  :-)
>> 
SJ> Correct, that's why I proposed to change the post-receive script (which
SJ> writes and sends the mail) so that it uses the "Commit:" address for
SJ> constructing the "From:" field in the mail.  Sorry if that was unclear.
>> 
>> The script is in the Git repo under etc/post-receive.  Can you suggest a patch?

SJ> The following should work (untested, though):
SJ> diff --git a/etc/post-receive b/etc/post-receive
SJ> index 421db3e..c77d6df 100755
SJ> --- a/etc/post-receive
SJ> +++ b/etc/post-receive
SJ> @@ -2,9 +2,9 @@
 
SJ>  # modified: 2010-09-01 and on by tzz@lifelogs.com
 
SJ> -# Use the email address of the author of the last commit.
SJ> -export USER_EMAIL=$(git log -1 --format=format:%ae HEAD)
SJ> -export USER_NAME=$(git log -1 --format=format:%an HEAD)
SJ> +# Use the email address of the committer of the last commit.
SJ> +export USER_EMAIL=$(git log -1 --format=format:%ce HEAD)
SJ> +export USER_NAME=$(git log -1 --format=format:%cn HEAD)
 
SJ>  # the remainder is the standard git-core post-receive-email with some changes:

Sorry it took so long.  I installed your change (which Julien comitted
yesterday) on the Git server.

Ted




  reply	other threads:[~2010-11-23 11:14 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-09 10:55 Sven Joachim
2010-11-09 17:53 ` Lars Magne Ingebrigtsen
2010-11-09 18:54   ` Julien Danjou
2010-11-09 19:08     ` Lars Magne Ingebrigtsen
2010-11-09 19:28       ` Sven Joachim
2010-11-09 21:34         ` James Cloos
2010-11-09 21:52         ` Ted Zlatanov
2010-11-10  7:46           ` Sven Joachim
2010-11-23 11:14             ` Ted Zlatanov [this message]
2010-11-09 19:01   ` Adam Sjøgren
2010-11-09 19:09   ` Sven Joachim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y68knvfa.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).