diff options
author | Richard Maw <richard.maw@gmail.com> | 2016-06-25 20:54:07 +0100 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2016-07-13 20:09:37 +0100 |
commit | 21637776234574c4bbedf45af7f59663b46458bd (patch) | |
tree | 7f0b31fad00e7b99f93bfb5b696168fcd83126a0 | |
parent | 7a76691acf749e53c9d8d3ddaa558259d5567d34 (diff) | |
download | cgit-21637776234574c4bbedf45af7f59663b46458bd.tar.gz cgit-21637776234574c4bbedf45af7f59663b46458bd.tar.bz2 cgit-21637776234574c4bbedf45af7f59663b46458bd.zip |
Print out parsed namespace on request
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>
-rw-r--r-- | cgit.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |