Diff options
| author | Bryce Kwon <bryce@brycekwon.com> | |
|---|---|---|
| committer | Bryce Kwon <bryce@brycekwon.com> | |
| commit | ||
| parent | ||
| tree | ||
| download | ||
State once that cgitrc is read in order
The rule was written down only under scan-path, so a setting such as
enable-blame=1 added at the end of cgitrc silently did nothing.
| -rw-r--r-- | MANUAL.txt | 8 | |
| -rw-r--r-- | custom/cgitrc | 4 |
2 files changed, 12 insertions, 0 deletions
@@ -16,6 +16,14 @@ use its value instead. Global settings --------------- +cgitrc is read from the top down. Each repository copies the global settings +it can override with a repo.* form, and the current section, when its repo.url +line or the scan-path that finds it is read, so such a setting placed below a +repository does not reach it. logo, logo-link and readme are the exception, +since a repository without its own falls back to them once the whole file is +read. Every other global setting applies wherever it stands, apart from those +whose entry says to define them prior to scan-path. + about-filter:: Specifies a command which will be invoked to format the content of about pages (both top-level and for each repository). When no about-filter is diff --git a/custom/cgitrc b/custom/cgitrc index 427ced0..a29da89 100644 --- a/custom/cgitrc +++ b/custom/cgitrc @@ -11,6 +11,10 @@ # file. # # One key=value pair per line. Lines starting with # or ; are comments. +# +# cgit reads the file from the top down. Most settings a repository can override +# with a repo.* line reach only the repositories defined after them, so add +# global settings above the scan-path and repo.url lines rather than at the end. # Maximum number of entries in the cgit output cache. A value of 0 disables # caching. Value is an integer. Default is 0. |
