Skip to contentSkip to conversation

Autodiscovery of git repositories from HTML

DISCUSSION Thomas Thurman 3 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

I have a web page which lives in a git repository so that it can be easily mirrored. I would like to use a "rel" link to the URL of the git repository so that it can be automatically discovered, like an RSS feed:

<link rel="alternate" type="???" href="http://example.com/.git"/>

Is there any existing convention as to what the type should be? Note that this isn't necessarily the same question as what a git repository should be served as over HTTP: the Universal Edit Button uses a dummy MIME type of "application/x-wiki".

Thomas

Signature · 2 lines
Thomas Thurman - thomas at thurman.org.uk - http://marnanel.org
What if a dragon stole your library books? http://borrowable.net
#1 lore raw
Quoted 8 lines

I have a web page which lives in a git repository so that it can be easily mirrored. I would like to use a "rel" link to the URL of the git repository so that it can be automatically discovered, like an RSS feed:

<link rel="alternate" type="???" href="http://example.com/.git"/>

Is there any existing convention as to what the type should be?

I don't think there is any such convention, since I don't think anyone has done this before (but it would have interesting use cases).

Actually, I don't think rel="alternate" describes the relation well; a repository isn't exactly an alternate version of the document.

If we don't care about the standard, we might want to use something like the widely used rel="shortcut icon", e.g. rel="git repository".

Jan

#2 lore raw
In reply to Thomas Thurman
Quoted 10 lines · Thomas Thurman

I have a web page which lives in a git repository so that it can be easily mirrored. I would like to use a "rel" link to the URL of the git repository so that it can be automatically discovered, like an RSS feed:

<link rel="alternate" type="???" href="http://example.com/.git"/>

Is there any existing convention as to what the type should be? Note that this isn't necessarily the same question as what a git repository should be served as over HTTP: the Universal Edit Button uses a dummy MIME type of "application/x-wiki".

See proposal at http://joey.kitenet.net/rfc/rel-vcs/
(which use 'rel' microformat, rather than 'type' microformat).

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git