# Autodiscovery of git repositories from HTML

3 messages from 2009-10-27 to 2009-10-27. Participants: Thomas Thurman, Jakub Narebski, Jan Krüger.
Thread: https://gitlist.dev/t/21377

## Thomas Thurman, 2009-10-27 13:00

Subject: Autodiscovery of git repositories from HTML
Message-ID: <20091027130000.GX30085@Dorothy.plexq.com>
URL: https://gitlist.dev/e/20091027130000.GX30085%40Dorothy.plexq.com

```
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, 2009-10-27 13:28

Subject: Re: Autodiscovery of git repositories from HTML
Message-ID: <m3vdi1c6fw.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3vdi1c6fw.fsf%40localhost.localdomain
In-Reply-To: <20091027130000.GX30085@Dorothy.plexq.com>

```
Thomas Thurman <tthurman@gnome.org> writes:

> 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, 2009-10-27 13:32

Subject: Re: Autodiscovery of git repositories from HTML
Message-ID: <20091027143229.78140450@perceptron>
URL: https://gitlist.dev/e/20091027143229.78140450%40perceptron
In-Reply-To: <20091027130000.GX30085@Dorothy.plexq.com>

```
> 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

```
