diff options
author | Cameron Katri <me@cameronkatri.com> | 2021-06-14 19:38:46 -0400 |
---|---|---|
committer | Cameron Katri <me@cameronkatri.com> | 2021-06-15 11:45:44 -0400 |
commit | 09631f5ed55f51b686814a31340c2fa80ac48b3d (patch) | |
tree | ceabc9840c327a95b90c74b8239ab2e8cf2df84f /cgit.h | |
parent | 5258c297ba6fb604ae1415fbc19a3fe42457e49e (diff) | |
download | cgit-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; |