path: root/cgit.c
diff options
authorRichard Maw <richard.maw@gmail.com>2016-06-30 21:06:46 +0100
committerRichard Maw <richard.maw@gmail.com>2016-07-13 20:09:37 +0100
commitaa69de50d3c0ef30a2f97e95f0582445890d027b (patch)
tree5186b423fac6aa49cda890f148ce9d1992841abb /cgit.c
parentAdd documentation for repo.namespace (diff)
Allow agefile to be set per-repository
This adds "repo.agefile", since namespaced repositories share the same files, and we'd like to be able to see the ages of the refs for each namespace. Whatever the git server uses for updating the age file must be namespace aware and must write the age file to a path consistent with "repo.agefile". Signed-off-by: Richard Maw <richard.maw@gmail.com>
Diffstat (limited to 'cgit.c')
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.c b/cgit.c
index d428019..a87f245 100644
--- a/cgit.c
+++ b/cgit.c
@@ -88,6 +88,8 @@ static void repo_config(struct cgit_repo *repo, const char *name, const char *va
repo->logo = xstrdup(value);
else if (!strcmp(name, "logo-link") && value != NULL)
repo->logo_link = xstrdup(value);
+ else if (!strcmp(name, "agefile") && value != NULL)
+ repo->agefile = xstrdup(value);
else if (!strcmp(name, "hide"))
repo->hide = atoi(value);
else if (!strcmp(name, "ignore"))