aboutsummaryrefslogtreecommitdiffstats
path: root/cgit.h
diff options
context:
space:
mode:
authorLukas Fleischer2015-01-29 12:52:49 +0100
committerJason A. Donenfeld2015-01-29 16:41:14 +0100
commitc58cec9dff273b44c428cfaee24e5e3743c0034e (patch)
tree7302ee9868fa94b9cf64a2a361294ad2e4bc360f /cgit.h
parent1a2eeb94d42b983213076906eb5c5b85452b2c30 (diff)
downloadcgit-c58cec9dff273b44c428cfaee24e5e3743c0034e.tar.gz
cgit-c58cec9dff273b44c428cfaee24e5e3743c0034e.tar.bz2
cgit-c58cec9dff273b44c428cfaee24e5e3743c0034e.zip
Add repo.hide and repo.ignore
These options can be used to hide a repository from the index or completely ignore a repository, respectively. They are particularly useful when used in combination with scan-path. Signed-off-by: Lukas Fleischer <cgit@cryptocrack.de>
Diffstat (limited to 'cgit.h')
-rw-r--r--cgit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgit.h b/cgit.h
index 42140ac..16f8092 100644
--- a/cgit.h
+++ b/cgit.h
@@ -106,6 +106,8 @@ struct cgit_repo {
106 struct cgit_filter *email_filter; 106 struct cgit_filter *email_filter;
107 struct cgit_filter *owner_filter; 107 struct cgit_filter *owner_filter;
108 struct string_list submodules; 108 struct string_list submodules;
109 int hide;
110 int ignore;
109}; 111};
110 112
111typedef void (*repo_config_fn)(struct cgit_repo *repo, const char *name, 113typedef void (*repo_config_fn)(struct cgit_repo *repo, const char *name,