From mboxrd@z Thu Jan 1 00:00:00 1970 From: richard.maw at gmail.com (Richard Maw) Date: Mon, 1 Aug 2016 22:35:53 +0100 Subject: [PATCH v3 21/21] Add documentation for repo.agefile In-Reply-To: <20160801213553.16807-1-richard.maw@gmail.com> References: <20160801213553.16807-1-richard.maw@gmail.com> Message-ID: <20160801213553.16807-22-richard.maw@gmail.com> Signed-off-by: Richard Maw --- cgitrc.5.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cgitrc.5.txt b/cgitrc.5.txt index 0de14a4..644e0ef 100644 --- a/cgitrc.5.txt +++ b/cgitrc.5.txt @@ -468,6 +468,10 @@ repo.about-filter:: Override the default about-filter. Default value: none. See also: "enable-filter-overrides". See also: "FILTER API". +repo.agefile:: + Override the default agefile. Default value: none. See also: + "agefile". See also: "NAMESPACES". + repo.branch-sort:: Flag which, when set to "age", enables date ordering in the branch ref list, and when set to "name" enables ordering by branch name. Default @@ -804,6 +808,16 @@ The config setting for this repository would be: repo.namespace = foo/bar .... +It's also recommended to set a different age file for the namespace. +The cgit repository contains a contrib script for generating age-files +for namespaces in a subdirectory. + +The corresponding config for the "foo/bar" namespace would be: + +.... +repo.agefile = info/web/namespaces/foo/bar/last-modified +.... + EXAMPLE CGITRC FILE ------------------- -- 2.9.0