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>
这个提交包含在:
Lukas Fleischer
2015-01-29 12:52:49 +01:00
提交者 Jason A. Donenfeld
父节点 1a2eeb94d4
当前提交 c58cec9dff
共有 5 个文件被更改,包括 23 次插入0 次删除

查看文件

@@ -275,6 +275,8 @@ void cgit_print_repolist()
html("<table summary='repository list' class='list nowrap'>");
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++;