From 09631f5ed55f51b686814a31340c2fa80ac48b3d Mon Sep 17 00:00:00 2001 From: Cameron Katri Date: Mon, 14 Jun 2021 19:38:46 -0400 Subject: Add a license tab This tab is nearly identical to the about tab, use the license field in cgitrc to set a list of files to check for or use repo.license or cgit.license as a git-config key. --- shared.c | 1 + 1 file changed, 1 insertion(+) (limited to 'shared.c') diff --git a/shared.c b/shared.c index 8115469..c7b98cc 100644 --- a/shared.c +++ b/shared.c @@ -70,6 +70,7 @@ struct cgit_repo *cgit_add_repo(const char *url) ret->commit_sort = ctx.cfg.commit_sort; ret->module_link = ctx.cfg.module_link; ret->readme = ctx.cfg.readme; + ret->license = ctx.cfg.license; ret->mtime = -1; ret->about_filter = ctx.cfg.about_filter; ret->commit_filter = ctx.cfg.commit_filter; -- cgit v1.2.3-56-ge451