aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/shared.c
diff options
context:
space:
mode:
authorCameron Katri <me@cameronkatri.com>2021-06-14 19:38:46 -0400
committerCameron Katri <me@cameronkatri.com>2021-06-15 11:45:44 -0400
commit09631f5ed55f51b686814a31340c2fa80ac48b3d (patch)
treeceabc9840c327a95b90c74b8239ab2e8cf2df84f /shared.c
parent5258c297ba6fb604ae1415fbc19a3fe42457e49e (diff)
downloadcgit-09631f5ed55f51b686814a31340c2fa80ac48b3d.tar.gz
cgit-09631f5ed55f51b686814a31340c2fa80ac48b3d.tar.zst
cgit-09631f5ed55f51b686814a31340c2fa80ac48b3d.zip
Add a license tabck/license
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.
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c1
1 files changed, 1 insertions, 0 deletions
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;