summaryrefslogtreecommitdiffstats
path: root/gitweb.conf.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-12-17 15:54:21 -0800
committerJunio C Hamano <gitster@pobox.com>2013-12-17 15:54:21 -0800
commitcf77b0414a44eadfcd0c74dfcae739427b7d2cce (patch)
tree1519c182edb5f1d3603ae6d752dcb9106e36f117 /gitweb.conf.txt
parent4c8f2d99229331de853716af53a6a0901b4b0d68 (diff)
downloadgit-htmldocs-cf77b0414a44eadfcd0c74dfcae739427b7d2cce.tar.gz
Autogenerated HTML docs for v1.8.5.2-192-g7794
Diffstat (limited to 'gitweb.conf.txt')
-rw-r--r--gitweb.conf.txt37
1 files changed, 37 insertions, 0 deletions
diff --git a/gitweb.conf.txt b/gitweb.conf.txt
index e2113d93c..db4154f9d 100644
--- a/gitweb.conf.txt
+++ b/gitweb.conf.txt
@@ -849,6 +849,43 @@ time zones in the form of "+/-HHMM", such as "+0200".
+
Project specific override is not supported.
+extra-branch-refs::
+ List of additional directories under "refs" which are going to
+ be used as branch refs. For example if you have a gerrit setup
+ where all branches under refs/heads/ are official,
+ push-after-review ones and branches under refs/sandbox/,
+ refs/wip and refs/other are user ones where permissions are
+ much wider, then you might want to set this variable as
+ follows:
++
+--------------------------------------------------------------------------------
+$feature{'extra-branch-refs'}{'default'} =
+ ['sandbox', 'wip', 'other'];
+--------------------------------------------------------------------------------
++
+This feature can be configured on per-repository basis after setting
+$feature{'extra-branch-refs'}{'override'} to true, via repository's
+`gitweb.extraBranchRefs` configuration variable, which contains a
+space separated list of refs. An example:
++
+--------------------------------------------------------------------------------
+[gitweb]
+ extraBranchRefs = sandbox wip other
+--------------------------------------------------------------------------------
++
+The gitweb.extraBranchRefs is actually a multi-valued configuration
+variable, so following example is also correct and the result is the
+same as of the snippet above:
++
+--------------------------------------------------------------------------------
+[gitweb]
+ extraBranchRefs = sandbox
+ extraBranchRefs = wip other
+--------------------------------------------------------------------------------
++
+It is an error to specify a ref that does not pass "git check-ref-format"
+scrutiny. Duplicated values are filtered.
+
EXAMPLES
--------