From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Fri, 1 Aug 2014 22:14:19 +0100 Subject: [PATCH 3/3] ui-shared: add rel-vcs microformat links to HTML header In-Reply-To: <32c0e49ef9eccdcc96d20c2240cd90a7d4062993.1406927659.git.john@keeping.me.uk> References: <32c0e49ef9eccdcc96d20c2240cd90a7d4062993.1406927659.git.john@keeping.me.uk> Message-ID: <17018368d7bee5be6307f6c628aab5386210fb0d.1406927659.git.john@keeping.me.uk> As described at https://joeyh.name/rfc/rel-vcs/. Signed-off-by: John Keeping --- ui-shared.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/ui-shared.c b/ui-shared.c index 5bae02d..9ac65ab 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -661,6 +661,15 @@ void cgit_print_http_headers(void) exit(0); } +static void print_rel_vcs_link(const char *url) +{ + html("\n"); +} + void cgit_print_docstart(void) { if (ctx.cfg.embedded) { @@ -699,6 +708,8 @@ void cgit_print_docstart(void) html("' type='application/atom+xml'/>\n"); strbuf_release(&sb); } + if (ctx.repo) + cgit_add_clone_urls(print_rel_vcs_link); if (ctx.cfg.head_include) html_include(ctx.cfg.head_include); html("\n"); -- 2.0.3.890.g700db9e