[Xcb] adding diff in the mails of xcb-commits ML

Carl Worth cworth at cworth.org
Mon Feb 27 22:25:34 PST 2006

On Tue, 28 Feb 2006 06:38:51 +0100 (CET), Vincent Torri wrote:
> Maybe this question is more for Jeremy than others. It seems that it's
> possible to add diffs in the mails from the xcb-commits ML (well, I don't
> have them ;) ). Cairo does that.

I just whacked XCB's update hook with a similar change to what I have
in cairo.

When I first made the cairo hook, it was only sending the diff for a
single patch pushed (most recent patch perhaps?). Hopefully now it
will do all of them.

Oh, it's probably doing them from most recent to oldest, which is
likely a confusing order though.

I do wish the hooks were under revision control and more visible by
default, but here are the basic changes I made if you want to
experiment with .git/hooks/update yourself.


diff -u update update.cairo
--- update      2006-02-27 11:23:31.000000000 -0800
+++ update.cairo        2006-02-27 22:08:01.000000000 -0800
@@ -10,7 +10,7 @@

 project=$(cat $GIT_DIR/description)
-recipients="commit-list at somewhere.com commit-list at somewhereelse.com"
+recipients="cairo-commit at cairographics.org"

 ref_type=$(git cat-file -t "$3")

@@ -83,7 +83,7 @@
                echo "Rebased ref, commits from common ancestor:"
-       git-rev-list --pretty "$3" "^$base"
+       git-rev-list "$3" "^$base" | while read rev; do git-show $rev;
 fi) |
-mail -s "$project: Changes to '${1##refs/heads/}'" $recipients
+mail -s "Changes to '${1##refs/heads/}'" $recipients
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/xcb/attachments/20060227/0c7b702d/attachment.pgp

More information about the Xcb mailing list