aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/cgit.h
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 /cgit.h
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 'cgit.h')
-rw-r--r--cgit.h3
1 files changed, 3 insertions, 0 deletions
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;