summaryrefslogtreecommitdiff
path: root/contrib/ciabot/INSTALL
diff options
context:
space:
mode:
authorLibravatar Eric S. Raymond <esr@thyrsus.com>2012-08-23 00:10:53 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2012-08-23 20:58:20 -0700
commit64840701683b4126234b39da746b3cddb6db00a8 (patch)
tree0e4a133b2a055733449063ca66a41042c3a76781 /contrib/ciabot/INSTALL
parentcontrib/ciabot: Get ciabot configuration from git variables (diff)
downloadtgif-64840701683b4126234b39da746b3cddb6db00a8.tar.xz
Improved documentation for the ciabot scripts.
Signed-off-by: Eric S. Raymond <esr@thyrsus.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/ciabot/INSTALL')
-rw-r--r--contrib/ciabot/INSTALL38
1 files changed, 38 insertions, 0 deletions
diff --git a/contrib/ciabot/INSTALL b/contrib/ciabot/INSTALL
new file mode 100644
index 0000000000..8253865d22
--- /dev/null
+++ b/contrib/ciabot/INSTALL
@@ -0,0 +1,38 @@
+= Installation instructions =
+
+Two scripts are included. The Python one (ciabot.py) is faster and
+more capable; the shell one (ciabot.sh) is a fallback in case Python
+gives your git hosting site indigestion. (I know of no such sites.)
+
+It is no longer necessary to modify the script in order to put it
+in place; in fact, this is now discouraged. It is entirely
+configurable with the following git config variables:
+
+ciabot.project = name of the project (required)
+ciabot.repo = name of the project repo for gitweb/cgit purposes
+ciabot.xmlrpc = if true (default), ship notifications via XML-RPC
+ciabot.revformat = format in which the revision is shown
+
+The ciabot.repo value defaults to ciabot.project lowercased.
+
+The revformat variable may have the following values
+raw -> full hex ID of commit
+short -> first 12 chars of hex ID
+describe -> describe relative to last tag, falling back to short
+The default is 'describe'.
+
+Once you've set these variables, try your script with -n to see the
+notification message dumped to stdout and verify that it looks sane.
+
+After verifying correct function, install one of these scripts either
+in a post-commit hook or in an update hook.
+
+In post-commit, run it without arguments. It will query for
+current HEAD and the latest commit ID to get the information it
+needs.
+
+In update, call it with a refname followed by a list of commits:
+You want to reverse the order git rev-list emits because it lists
+from most recent to oldest.
+
+/path/to/ciabot.py ${refname} $(git rev-list ${oldhead}..${newhead} | tac)