[PATCH 3/5] Revert "ui-shared: add rel-vcs microformat links to HTML header"

Juuso Lapinlampi wub at partyvan.eu
Wed May 11 20:04:16 CEST 2016


See: a24995bf8c55114044d6baf32ad5e8c3a04d924d

This reverts commit 3c53ebfb57a5dba8fc65b2f99ebbfb6356666e34.
---
 ui-shared.c | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/ui-shared.c b/ui-shared.c
index 1ded2d6..ba11c55 100644
--- a/ui-shared.c
+++ b/ui-shared.c
@@ -703,15 +703,6 @@ void cgit_redirect(const char *url, bool permanent)
 	html("\n\n");
 }
 
-static void print_rel_vcs_link(const char *url)
-{
-	html("<link rel='vcs-git' href='");
-	html_attr(url);
-	html("' title='");
-	html_attr(ctx.repo->name);
-	html(" Git repository'/>\n");
-}
-
 void cgit_print_docstart(void)
 {
 	if (ctx.cfg.embedded) {
@@ -753,8 +744,6 @@ void cgit_print_docstart(void)
 		strbuf_release(&sb);
 		free(fileurl);
 	}
-	if (ctx.repo)
-		cgit_add_clone_urls(print_rel_vcs_link);
 	if (ctx.cfg.head_include)
 		html_include(ctx.cfg.head_include);
 	html("</head>\n");
-- 
2.8.1



More information about the CGit mailing list