git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Claudio Scordino <cloud.of.andor@gmail.com>
To: git@vger.kernel.org
Subject: Mail after commit
Date: Tue, 12 Jun 2007 17:32:14 +0200	[thread overview]
Message-ID: <466EBC7E.8040104@gmail.com> (raw)

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

             reply	other threads:[~2007-06-12 15:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-12 15:32 Claudio Scordino [this message]
2007-06-12 20:35 ` Mail after commit 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

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=466EBC7E.8040104@gmail.com \
    --to=cloud.of.andor@gmail.com \
    --cc=git@vger.kernel.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).