diff options
context:
space:
mode:
Diffstat (limited to 'source/cgit.h')
-rw-r--r--source/cgit.h3
1 file changed, 3 insertions, 0 deletions
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 *);