summary refs log tree commit diff
path: root/shared.c
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 /shared.c
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 'shared.c')
-rw-r--r--shared.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 8115469..b1090a6 100644
--- a/shared.c
+++ b/shared.c
@@ -79,6 +79,7 @@ struct cgit_repo *cgit_add_repo(const char *url)
 	ret->clone_url = ctx.cfg.clone_url;
 	ret->submodules.strdup_strings = 1;
 	ret->hide = ret->ignore = 0;
+	ret->default_tab = ctx.cfg.default_tab;
 	return ret;
 }