threads / discuss / 21377

Autodiscovery of git repositories from HTML

Subject: Autodiscovery of git repositories from HTML

## tl;dr

3 messages between Oct 27, 2009 and Oct 27, 2009.

replies: 2people: 3as markdown or json

Thomas Thurman· Oct 27, 2009, 13:00 UTC · lore

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
-- 
Thomas Thurman - thomas at thurman.org.uk - http://marnanel.org
What if a dragon stole your library books? http://borrowable.net
Jakub Narebski· Oct 27, 2009, 13:28 UTC · re: Thomas Thurman · lore

Re: Autodiscovery of git repositories from HTML

Thomas Thurman <tthurman@gnome.org> writes:
Show 10 quoted 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?
> 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).

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Jan Krüger· Oct 27, 2009, 13:32 UTC · re: Thomas Thurman · lore

Re: Autodiscovery of git repositories from HTML

Show 8 quoted 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

← back to recent threads