diff --git a/autotests/folding/gitolite.conf.fold b/autotests/folding/gitolite.conf.fold new file mode 100644 --- /dev/null +++ b/autotests/folding/gitolite.conf.fold @@ -0,0 +1,16 @@ +# Example gitolite.conf + +include "mygroups.conf" + +@admin = user1 user2 +@admin = user3@domain.com + +repo @all + option deny-rules = 1 + option hooks.emailprefix = '[%GL_REPO] ' + +repo myrepo + - protected$ = @all # Nobody can push + RW+CD = @admin + RW = @group1 + R = user3@domain.com diff --git a/autotests/html/gitolite.conf.html b/autotests/html/gitolite.conf.html new file mode 100644 --- /dev/null +++ b/autotests/html/gitolite.conf.html @@ -0,0 +1,23 @@ + + + +gitolite.conf + +
+# Example gitolite.conf
+
+include "mygroups.conf"
+
+@admin = user1 user2
+@admin = user3@domain.com
+
+repo @all
+	option deny-rules = 1
+	option hooks.emailprefix = '[%GL_REPO] '
+
+repo myrepo
+	- protected$	= @all		# Nobody can push
+	RW+CD		= @admin
+	RW		= @group1
+	R		= user3@domain.com
+
diff --git a/autotests/input/gitolite.conf b/autotests/input/gitolite.conf new file mode 100644 --- /dev/null +++ b/autotests/input/gitolite.conf @@ -0,0 +1,16 @@ +# Example gitolite.conf + +include "mygroups.conf" + +@admin = user1 user2 +@admin = user3@domain.com + +repo @all + option deny-rules = 1 + option hooks.emailprefix = '[%GL_REPO] ' + +repo myrepo + - protected$ = @all # Nobody can push + RW+CD = @admin + RW = @group1 + R = user3@domain.com diff --git a/autotests/reference/gitolite.conf.ref b/autotests/reference/gitolite.conf.ref new file mode 100644 --- /dev/null +++ b/autotests/reference/gitolite.conf.ref @@ -0,0 +1,16 @@ +# Example gitolite.conf
+
+include "mygroups.conf"
+
+@admin = user1 user2
+@admin = user3@domain.com
+
+repo @all
+ option deny-rules = 1
+ option hooks.emailprefix = '[%GL_REPO] '
+
+repo myrepo
+ - protected$ = @all # Nobody can push
+ RW+CD = @admin
+ RW = @group1
+ R = user3@domain.com
diff --git a/data/syntax/gitolite.xml b/data/syntax/gitolite.xml --- a/data/syntax/gitolite.xml +++ b/data/syntax/gitolite.xml @@ -1,38 +1,64 @@ - - + +]> + + C + R + RW + RW+ + RWC + RW+C + RWD + RW+D + RWCD + RW+CD + config + option repo - + + + + + + + - + + + + - + - + + + - +