From 804b5b6172f1f8cda1c118c30cc257299bda8ee6 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 2 Aug 2026 09:47:00 -1000 Subject: Give empty repositories their own page --- source/cgit.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/cgit.h') diff --git a/source/cgit.h b/source/cgit.h index c41854e..d33a46b 100644 --- a/source/cgit.h +++ b/source/cgit.h @@ -318,6 +318,9 @@ struct cgit_context { struct cgit_config cfg; struct cgit_repo *repo; struct cgit_page page; + // Set once the repository is known to hold no commits, so the page + // header can drop the tabs that cannot render anything. + int empty_repo; }; typedef int (*write_archive_fn_t)(const char *, const char *); -- cgit v2.8.0