summary refs log tree commit diff
path: root/cgit.h
diff options
context:
space:
mode:
authorequa <equaa@protonmail.com>2022-01-06 18:18:05 -0600
committerequa <equaa@protonmail.com>2022-01-06 18:36:08 -0600
commit99c81764f66c0877a7ed66f5a03d52f948377678 (patch)
tree97626b497daa42b067e2ba2a49f8f9f56a240f39 /cgit.h
parent5258c297ba6fb604ae1415fbc19a3fe42457e49e (diff)
Add "default-tab" and "root-default-tab" configuration options HEAD master
These options allow the user to specify a page to display at the root
repository/index location instead of the default summary or repository list.

Signed-off-by: equa <equaa@protonmail.com>
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..bb555cf 100644
--- a/cgit.h
+++ b/cgit.h
@@ -86,6 +86,7 @@ struct cgit_repo {
 	char *owner;
 	char *homepage;
 	char *defbranch;
+	char *default_tab;
 	char *module_link;
 	struct string_list readme;
 	char *section;
@@ -215,6 +216,8 @@ struct cgit_config {
 	char *repository_sort;
 	char *virtual_root;	/* Always ends with '/'. */
 	char *strict_export;
+	char *default_tab;
+	char *root_default_tab;
 	int cache_size;
 	int cache_dynamic_ttl;
 	int cache_max_create_time;