git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Mail after commit
@ 2007-06-12 15:32 Claudio Scordino
  2007-06-12 20:35 ` Martin Langhoff
  0 siblings, 1 reply; 6+ messages in thread
From: Claudio Scordino @ 2007-06-12 15:32 UTC (permalink / raw)
  To: git

Hi all.

To have an email sent after every commit, I've put the following command in 
.git/hooks/post-commit:

rm -f /tmp/git-commit.patch ; git-format-patch --stdout -s `git log 
--pretty=oneline | awk '{print $1}' | sed -n '2p'` > /tmp/git-commit.patch ; 
git-send-email --no-signed-off-by-cc  --to XXX --from YYY /tmp/git-commit.patch 
; rm -f /tmp/git-commit.patch

and it works, indeed.

However, it's quite tricky.

Doesn't exist any way to make it simpler ?

Regards,

          Claudio

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

end of thread, other threads:[~2007-06-13 21:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-12 15:32 Mail after commit Claudio Scordino
2007-06-12 20:35 ` Martin Langhoff
2007-06-13 14:25   ` Jan-Benedict Glaw
2007-06-13 15:10     ` Andy Parkins
2007-06-13 21:19     ` Martin Langhoff
2007-06-13 21:26       ` Jan-Benedict Glaw

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