post-receive-email: hooks.showrev: show how to include both web link and patch
commit5ffd3113d4109ae5d3595425af3ff4a781617631
authorJim Meyering <jim@meyering.net>
Sat, 23 May 2009 12:26:44 +0000 (23 14:26 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sat, 23 May 2009 17:29:22 +0000 (23 10:29 -0700)
tree528b46a692ff9fdf5421fcaee3ff612f0da75d1c
parentb74d779bd90477f6514d0a9be4a75b4c40ed946c
post-receive-email: hooks.showrev: show how to include both web link and patch

Add a comment showing how to include a web link (i.e. gitweb/cgit)
and a patch in the email that is sent for each pushed commit.

The quoting was tricky enough that it's worth documenting.  To add
two blank lines (i.e. put \n\n in the printf), you would need to
say \\\\n\\\\n, and in the end, the pair of "echo" statements seemed
better.  This is used in glibc.git repository:

  http://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=summary

push-triggered messages have been sent to this list since May 21:

  http://sourceware.org/ml/glibc-cvs/2009-q2/

Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hooks/post-receive-email [changed mode: 0644->0755]