]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Inch toward a defensibly documented project state.
authorepriestley <epriestley@phabricator.com>
Tue, 15 Feb 2011 23:10:53 +0000 (15:10 -0800)
committerepriestley <epriestley@phabricator.com>
Tue, 15 Feb 2011 23:10:53 +0000 (15:10 -0800)
Summary:

Test Plan:

Reviewers:

CC:

.divinerconfig
src/docs/overview.diviner
src/docs/svn_hooks.diviner [new file with mode: 0644]

index 068a92e34b7340262e1b249e20c1a5498edd28ae..11a99d8c8fbe4f2a87e01f3f7c90bdfe91da1720 100644 (file)
@@ -2,7 +2,8 @@
   "name" : "Arcanist",
   "src_base" : "https://github.com/facebook/arcanist/blob/master",
   "groups" : {
-  
+    "intro" : "Introduction",
+    "config" : "Setup & Configuration"
   }
 }
 
index d8b95877c10ca5fe5ec2c97dba517ff83099f059..0bc22578a80ab817571af502d082679eeb2ce489 100644 (file)
@@ -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 (file)
index 0000000..c01fe28
--- /dev/null
@@ -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.
+