From mboxrd@z Thu Jan 1 00:00:00 1970 From: richard.maw at gmail.com (Richard Maw) Date: Mon, 1 Aug 2016 22:35:37 +0100 Subject: [PATCH v3 05/21] Print out parsed namespace on request In-Reply-To: <20160801213553.16807-1-richard.maw@gmail.com> References: <20160801213553.16807-1-richard.maw@gmail.com> Message-ID: <20160801213553.16807-6-richard.maw@gmail.com> 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 --- cgit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cgit.c b/cgit.c index 304027c..7746102 100644 --- 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) { -- 2.9.0