[Pkg-phototools-devel] Mailinglist for Git commit messages

Sebastian Harl sh at tokkee.org
Sun Dec 30 16:55:48 UTC 2007


Hi,

A couple of days ago, I've registered a new mailinglist [1]. It is meant to be
used as a central place to send Git commit messages to (see below for
instruction on how to set this up correctly for your repositories). It is
setup to be moderated, so only commit messages will show up on it. I will add
the appropriate <username>@alioth.debian.org email addresses to the list of
unmoderated senders.

I did not subscribe any one of you so far - please do so yourself.

Setup your repository
=====================

Setting up a repository to automatically send out an email after a git-push
operation is quite easy. Execute the following commands with the current
working directory being the (bare) repository on alioth (i.e.
/git/pkg-phototools/<project>.git):

  $ git config --add hooks.mailinglist \
      "pkg-phototools-commits at lists.alioth.debian.org"
  $ echo ". /home/groups/pkg-phototools/hooks/post-receive-email" \
      >> hooks/post-receive
  $ chmod 755 hooks/post-receive

The post-receive script
=======================

The script "post-receive-email" is a slightly modified version of the version
found in git-core. It produces output similar to this:

  ==== <project name> ====
  
  The branch "master" has been updated
         via  94ca65cbd7a722b4a54925c540bdbc75f1a1ca7d (commit)
        from  6d7fa59fd9616e4ac92b2fa9499909f431225314 (commit)
  
  Those revisions listed above that are new to this repository have
  not appeared on any other notification email; so we list those
  revisions in full, below.
  
  - Log -----------------------------------------------------------------
  commit 94ca65cbd7a722b4a54925c540bdbc75f1a1ca7d
  Author: Sebastian Harl <sh at tokkee.org>
  Date:   Sun Dec 30 15:31:52 2007 +0000
  
      <commit message(s)>
  
  -----------------------------------------------------------------------
  
  Summary of changes:
  foobar |   42 +++---
  1 files changed, 21 insertions(+), 21 deletions(-)

Please be aware that this script reads a couple of parameters from stdin. So,
in case you're using more than one script in your post-receive hook you have
to take care that each one will receive the arguments appropriately.

Cheers,
Sebastian

[1] pkg-phototools-commits at lists.alioth.debian.org

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-phototools-devel/attachments/20071230/ef9ba809/attachment.pgp 


More information about the Pkg-phototools-devel mailing list