summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2017-01-08 14:34:13 +0000
committerRichard Maw <richard.maw@gmail.com>2017-01-08 14:34:13 +0000
commit089408c30b28e83fac7127ad0caa5888892e45c8 (patch)
treeee8bfb832d597be81d608b47c43f2939f67cd51a /doc
parent0e97aa7a04ffc3f169e75327972d922df50a4758 (diff)
downloadgitano-089408c30b28e83fac7127ad0caa5888892e45c8.tar.gz
admin-doc: Describe conditional include
Diffstat (limited to 'doc')
-rw-r--r--doc/admin/000.mdwn12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/admin/000.mdwn b/doc/admin/000.mdwn
index 984832b..2177999 100644
--- a/doc/admin/000.mdwn
+++ b/doc/admin/000.mdwn
@@ -376,6 +376,18 @@ follows:
it is included from the per-project rules
(`refs/gitano-admin` branch of the repository being operated on).
+Include statements can be made conditional by adding a predicate after the path,
+so you can split up your rules
+
+ #main.lace
+ include update anyof [operation exact createref] [operation exact deleteref] [operation exact updaterefnonff] [operation exact updaterefff]
+
+ #update.lace
+ # Require fast-forward updates to refs/heads/master
+ deny "master may not be rebased" [ref exact refs/heads/master] [operation exact updaterefnonff]
+ # Branches must not be tags
+ deny "Branches may only be commits" [ref prefix refs/heads/] [newtype exact commit]
+
# Backup and restore of a Gitano instance
When gitano-setup is run, the admin needs to specify a Unix user in