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. --- cgit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cgit.h') diff --git a/cgit.h b/cgit.h index 69b5c13..f0ad595 100644 --- a/cgit.h +++ b/cgit.h @@ -88,6 +88,7 @@ struct cgit_repo { char *defbranch; char *module_link; struct string_list readme; + struct string_list license; char *section; char *clone_url; char *logo; @@ -206,6 +207,7 @@ struct cgit_config { char *module_link; char *project_list; struct string_list readme; + struct string_list license; char *robots; char *root_title; char *root_desc; @@ -223,6 +225,7 @@ struct cgit_config { int cache_scanrc_ttl; int cache_static_ttl; int cache_about_ttl; + int cache_license_ttl; int cache_snapshot_ttl; int case_sensitive_sort; int embedded; -- cgit v1.2.3-56-ge451