X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=irkerhook.xml;h=a78801ab8f4e5a7d50824f6888fd1dbe37ba3fe5;hb=ba82abc1c973498b98126fd003ec8afc44511925;hp=baf02311f7f952cf87f1d1dfcdc1863397ec05fb;hpb=799408d79915d30bfbc17b8576e6a9691fd0902c;p=irker.git diff --git a/irkerhook.xml b/irkerhook.xml index baf0231..a78801a 100644 --- a/irkerhook.xml +++ b/irkerhook.xml @@ -82,6 +82,13 @@ to reside. Defaults to "localhost". +email + +If set, use email for communication rather than TCP or UDP. +The value is used as the target mail address. + + + tcp If "true", use TCP for communication; if "false", use UDP. @@ -93,7 +100,7 @@ Defaults to "false". Changeset URL prefix for your repo. When the commit ID is appended to this, it should point at a CGI that will display the commit -through cgit,gitweb or something similar. The defaults will probably +through cgit, gitweb or something similar. The defaults will probably work if you have a typical gitweb/cgit setup. If the value of this variable is "None", generation of the URL @@ -121,13 +128,13 @@ variable is "None", no compression will be attempted. If "mIRC", highlight notification fields with mIRC color codes. If "ANSI", highlight notification fields with ANSI color escape sequences. Defaults to "none" (no colors). ANSI codes are supported -in Chatzilla. irssi, ircle, and BitchX, but not in mIRC, XChat, KVirc or -Konversation. +in Chatzilla, irssi, ircle, and BitchX; mIRC codes only are recognized +in mIRC, XChat, KVirc, Konversation, or weechat. Note: if you turn this on and notifications stop appearing on your channel, you need to turn off IRC's color filter on that channel. To do this you will need op privileges; issue the command "/mode -<channel> -c" with <channel> replaced by your chnnel name. +<channel> -c" with <channel> replaced by your channel name. You may need to first issue the command "/msg chanserv set <channel> MLOCK +nt-slk". @@ -186,6 +193,20 @@ irkerhook.py --refname=refs/heads/master HEAD However, this will not give the right result when you push to a non-default branch of a bare repo. +A typical way to install this hook is actually in the +post-receive hook, because it gets all the +necessary details and will not abort the push on failure. Use the +following script: + + +#!/bin/sh + +echo "sending IRC notification" +while read old new refname; do + irkerhook --refname=${refname} $(git rev-list --reverse ${old}..${new}) +done + + Preferences may be set in the repo config file in an [irker] section. Here is an example of what that can look like: