]> gitweb.ps.run Git - ps-cgit/blobdiff - cgitrc.5.txt
Add support for repo-local cgitrc file
[ps-cgit] / cgitrc.5.txt
index 68ae2edb1cac1b3dc044e56f53ccf5b883cc9fd3..df494aa5fbb66a57a5cecfe7a547a45e0ca53c21 100644 (file)
@@ -200,13 +200,8 @@ renamelimit::
          `man git-diff`). Default value: "-1".
 
 repo.group::
-       A value for the current repository group, which all repositories
-       specified after this setting will inherit. Default value: none.
-
-repo.scan::
-       A path which will be scanned for repositories. If caching is enabled,
-       the result will be cached as a cgitrc include-file in the cache
-       directory. Default value: none. See also: cache-scanrc-ttl.
+       Legacy alias for 'section' which will be deprecated starting with
+       cgit-1.0.
 
 robots::
        Text used as content for the "robots" meta-tag. Default value:
@@ -225,6 +220,16 @@ root-title::
        Text printed as heading on the repository index page. Default value:
        "Git Repository Browser".
 
+scan-path::
+       A path which will be scanned for repositories. If caching is enabled,
+       the result will be cached as a cgitrc include-file in the cache
+       directory. Default value: none. See also: cache-scanrc-ttl.
+
+section:
+       The name of the current repository section - all repositories defined
+       after this option will inherit the current section name. Default value:
+       none.
+
 snapshots::
        Text which specifies the default set of snapshot formats generated by
        cgit. The value is a space-separated list of zero or more of the
@@ -310,6 +315,9 @@ repo.snapshots::
        A mask of allowed snapshot-formats for this repo, restricted by the
        "snapshots" global setting. Default value: <snapshots>.
 
+repo.section::
+       Override the current section for this repository. Default value: none.
+
 repo.source-filter::
        Override the default source-filter. Default value: <source-filter>.
 
@@ -318,6 +326,15 @@ repo.url::
        setting specified for each repo. Default value: none.
 
 
+REPOSITORY-SPECIFIC CGITRC FILE
+-------------------------------
+When the option 'scan-path' is used to auto-discover git repositories, cgit
+will try to parse the file 'cgitrc' within any found repository. Such a repo-
+specific config file may contain any of the repo-specific options described
+above, except 'repo.url' and 'repo.path'. Also, in a repo-specific config
+file, the 'repo.' prefix is dropped from the config option names.
+
+
 EXAMPLE CGITRC FILE
 -------------------