X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/08cc2e5f0e24773dad81d38bd6b689e36afe9dda..305414df1246531baf0f2c959c2c61df4e93c526:/shared.c?ds=inline 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) return ret; } +struct repoinfo *cgit_get_repoinfo(const char *url) +{ + int i; + struct repoinfo *repo; + + for (i=0; iurl, url)) + return repo; + } + return NULL; +} + void cgit_global_config_cb(const char *name, const char *value) { if (!strcmp(name, "root-title"))