From: epriestley Date: Tue, 15 Feb 2011 23:10:53 +0000 (-0800) Subject: Inch toward a defensibly documented project state. X-Git-Tag: conduit-4~407 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=026269a707047182357f9df177dd4ff710a79bd5;p=arcanist.git Inch toward a defensibly documented project state. Summary: Test Plan: Reviewers: CC: --- diff --git a/.divinerconfig b/.divinerconfig index 068a92e3..11a99d8c 100644 --- a/.divinerconfig +++ b/.divinerconfig @@ -2,7 +2,8 @@ "name" : "Arcanist", "src_base" : "https://github.com/facebook/arcanist/blob/master", "groups" : { - + "intro" : "Introduction", + "config" : "Setup & Configuration" } } diff --git a/src/docs/overview.diviner b/src/docs/overview.diviner index d8b95877..0bc22578 100644 --- a/src/docs/overview.diviner +++ b/src/docs/overview.diviner @@ -1,4 +1,5 @@ @title Arcanist Overview +@group intro This document provides an overview of Arcanist, a code workflow tool. Arcanist (commonly, "arc") is the command-line frontend to Differential. diff --git a/src/docs/svn_hooks.diviner b/src/docs/svn_hooks.diviner new file mode 100644 index 00000000..c01fe283 --- /dev/null +++ b/src/docs/svn_hooks.diviner @@ -0,0 +1,19 @@ +@title Installing Arcanist SVN Hooks +@group config + += Installing Arcanist SVN Hooks = + +You can install Arcanist as an SVN pre-commit hook, to reject commits which +contain lint errors. The immediate value of this is that syntax errors won't +be committable, but you can block other kinds of badness with appropriate lint +engines. + +To install Arcanist as a pre-commit hook, add this to your svn/hooks/pre-commit: + + #!/bin/sh + /path/to/arcanist/bin/arc svn-hook-pre-commit $@ 1>&2 + +Make sure you make this file executable, or you'll get an error for every commit +with an unhelpful error message. You also need to specify the full path since +SVN nukes ENV before executing scripts. +