git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] contrib/hooks/post-receive-email: add a From: line to the email header
@ 2007-11-08  9:48 Gerrit Pape
  2007-11-08  9:55 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Gerrit Pape @ 2007-11-08  9:48 UTC (permalink / raw)
  To: git, Junio C Hamano

$committer is already extracted from the latest existing rev, so add the
corresponding From: line to the email header.

Signed-off-by: Gerrit Pape <pape@smarden.org>
---
 contrib/hooks/post-receive-email |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/contrib/hooks/post-receive-email b/contrib/hooks/post-receive-email
index 3904c18..c73f2d5 100644
--- a/contrib/hooks/post-receive-email
+++ b/contrib/hooks/post-receive-email
@@ -189,6 +189,7 @@ generate_email_header()
 	# --- Email (all stdout will be the email)
 	# Generate header
 	cat <<-EOF
+	From: $committer
 	To: $recipients
 	Subject: ${emailprefix}$projectdesc $refname_type, $short_refname, ${change_type}d. $describe
 	X-Git-Refname: $refname
-- 
1.5.3.5

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-01-22 14:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-08  9:48 [PATCH] contrib/hooks/post-receive-email: add a From: line to the email header Gerrit Pape
2007-11-08  9:55 ` Junio C Hamano
2007-11-08 10:35   ` Andreas Ericsson
2007-11-08 12:11   ` [PATCH] contrib/hooks/post-receive-email: remove cruft, $committer is not used Gerrit Pape
2008-01-22 14:12   ` [PATCH] contrib/hooks/post-receive-email: add a From: line to the email header Benoit Sigoure

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).