From c58cec9dff273b44c428cfaee24e5e3743c0034e Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 29 Jan 2015 12:52:49 +0100 Subject: 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 --- ui-repolist.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui-repolist.c') 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() html(""); for (i = 0; i < cgit_repolist.count; i++) { ctx.repo = &cgit_repolist.repos[i]; + if (ctx.repo->hide || ctx.repo->ignore) + continue; if (!(is_match(ctx.repo) && is_in_url(ctx.repo))) continue; hits++; -- cgit v1.2.3-70-g09d2