aboutsummaryrefslogtreecommitdiffstats
path: root/ui-repolist.c
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 /ui-repolist.c
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 'ui-repolist.c')
-rw-r--r--ui-repolist.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ui-repolist.c b/ui-repolist.c
index f929cb7..91911e0 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -275,6 +275,8 @@ void cgit_print_repolist()
275 html("<table summary='repository list' class='list nowrap'>"); 275 html("<table summary='repository list' class='list nowrap'>");
276 for (i = 0; i < cgit_repolist.count; i++) { 276 for (i = 0; i < cgit_repolist.count; i++) {
277 ctx.repo = &cgit_repolist.repos[i]; 277 ctx.repo = &cgit_repolist.repos[i];
278 if (ctx.repo->hide || ctx.repo->ignore)
279 continue;
278 if (!(is_match(ctx.repo) && is_in_url(ctx.repo))) 280 if (!(is_match(ctx.repo) && is_in_url(ctx.repo)))
279 continue; 281 continue;
280 hits++; 282 hits++;