aboutsummaryrefslogtreecommitdiffstats
path: root/shared.c
diff options
context:
space:
mode:
Diffstat (limited to 'shared.c')
-rw-r--r--shared.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/shared.c b/shared.c
index 53cd9b0..b164d81 100644
--- a/shared.c
+++ b/shared.c
@@ -93,6 +93,19 @@ struct repoinfo *add_repo(const char *url)
93 return ret; 93 return ret;
94} 94}
95 95
96struct repoinfo *cgit_get_repoinfo(const char *url)
97{
98 int i;
99 struct repoinfo *repo;
100
101 for (i=0; i<cgit_repolist.count; i++) {
102 repo = &cgit_repolist.repos[i];
103 if (!strcmp(repo->url, url))
104 return repo;
105 }
106 return NULL;
107}
108
96void cgit_global_config_cb(const char *name, const char *value) 109void cgit_global_config_cb(const char *name, const char *value)
97{ 110{
98 if (!strcmp(name, "root-title")) 111 if (!strcmp(name, "root-title"))