summaryrefslogtreecommitdiff
path: root/ui_70-repolist.c
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2018-07-29 16:33:26 +0100
committerKatolaZ <katolaz@freaknet.org>2018-07-29 16:33:26 +0100
commitd466dfc252f9896b1d6bdce623067378e04b8e71 (patch)
tree2998cb69b9c790457f58556dd30d80b4a605c341 /ui_70-repolist.c
parentaf460536388cc279d94194a57452a445b0e82cbb (diff)
added my name to copyright statements -- few tweaks
Diffstat (limited to 'ui_70-repolist.c')
-rw-r--r--ui_70-repolist.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui_70-repolist.c b/ui_70-repolist.c
index 7a4e6ae..7cf1da9 100644
--- a/ui_70-repolist.c
+++ b/ui_70-repolist.c
@@ -1,6 +1,7 @@
/* ui-repolist.c: functions for generating the repolist page
*
* Copyright (C) 2006-2014 cgit Development Team <cgit@lists.zx2c4.com>
+ * 2018 Vincenzo 'KatolaZ' Nicosia <katolaz@freaknet.org>
*
* Licensed under GNU General Public License v2
* (see COPYING for full license text)
@@ -110,8 +111,10 @@ static int is_in_url(struct cgit_repo *repo)
static int is_visible(struct cgit_repo *repo)
{
- if (repo->hide || repo->ignore)
+ if (repo->hide || repo->ignore){
+ fprintf(stderr, "%s is invisible or ignored", repo->name);
return 0;
+ }
if (!(is_match(repo) && is_in_url(repo)))
return 0;
return 1;
@@ -248,7 +251,7 @@ void cgit_print_repolist(void)
int sorted = 0;
if (!any_repos_visible()) {
- cgit_gopher_error("No repositories found");
+ cgit_gopher_error("No visible repositories found");
return;
}