]> granicus.if.org Git - cgit/commitdiff
Print out parsed namespace on request
authorRichard Maw <richard.maw@gmail.com>
Sat, 25 Jun 2016 19:54:07 +0000 (20:54 +0100)
committerRichard Maw <richard.maw@gmail.com>
Wed, 13 Jul 2016 19:09:37 +0000 (20:09 +0100)
This is not strictly necessary,
as we do not have any way to generate namespace entries from a scan-path,
but I'd rather not leave this as a surprise
to someone who comes up with a good namespace discovery mechanism.

Signed-off-by: Richard Maw <richard.maw@gmail.com>
cgit.c

diff --git a/cgit.c b/cgit.c
index e525264cf4ea1c0cdba98a57885fc63cb7aba770..9b2733bb1f4b30591bb33430801651ad4d60e3be 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -778,6 +778,8 @@ static void print_repo(FILE *f, struct cgit_repo *repo)
        fprintf(f, "repo.url=%s\n", repo->url);
        fprintf(f, "repo.name=%s\n", repo->name);
        fprintf(f, "repo.path=%s\n", repo->path);
+       if (repo->namespace)
+               fprintf(f, "repo.namespace=%s\n", repo->namespace);
        if (repo->owner)
                fprintf(f, "repo.owner=%s\n", repo->owner);
        if (repo->desc) {