summaryrefslogtreecommitdiff
path: root/cgit.c
diff options
context:
space:
mode:
authorMehmet Samet Duman <froster12@naver.com>2026-02-13 15:03:23 +0300
committerMehmet Samet Duman <froster12@naver.com>2026-02-13 15:03:23 +0300
commit03d3fbba855583d8928f2ebd98487db14e69ae5d (patch)
tree128166d8f57c49fc3c8416a55e93a89e76ff9a7d /cgit.c
parent98d6a20f3724be8eb5eef639b1774c2fa964a89d (diff)
downloadProject-Tick-03d3fbba855583d8928f2ebd98487db14e69ae5d.tar.gz
Project-Tick-03d3fbba855583d8928f2ebd98487db14e69ae5d.zip
feat: add support for Contributor License Agreement (CLA) page and related configuration
Signed-off-by: Mehmet Samet Duman <froster12@naver.com>
Diffstat (limited to 'cgit.c')
-rw-r--r--cgit.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cgit.c b/cgit.c
index 2479986998..c3ddfaba1c 100644
--- a/cgit.c
+++ b/cgit.c
@@ -161,6 +161,8 @@ static void config_cb(const char *name, const char *value)
ctx.cfg.root_readme = xstrdup(value);
else if (!strcmp(name, "root-coc"))
ctx.cfg.root_coc = xstrdup(value);
+ else if (!strcmp(name, "root-cla"))
+ ctx.cfg.root_cla = xstrdup(value);
else if (!strcmp(name, "css"))
string_list_append(&ctx.cfg.css, xstrdup(value));
else if (!strcmp(name, "js"))
@@ -1075,7 +1077,8 @@ static int calc_ttl(void)
if (!ctx.qry.page)
return ctx.cfg.cache_repo_ttl;
- if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc"))
+ if (!strcmp(ctx.qry.page, "about") || !strcmp(ctx.qry.page, "coc") ||
+ !strcmp(ctx.qry.page, "cla"))
return ctx.cfg.cache_about_ttl;
if (!strcmp(ctx.qry.page, "snapshot"))