git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Autodiscovery of git repositories from HTML
@ 2009-10-27 13:00 Thomas Thurman
  2009-10-27 13:28 ` Jakub Narebski
  2009-10-27 13:32 ` Jan Krüger
  0 siblings, 2 replies; 3+ messages in thread
From: Thomas Thurman @ 2009-10-27 13:00 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autodiscovery of git repositories from HTML
  2009-10-27 13:00 Autodiscovery of git repositories from HTML Thomas Thurman
@ 2009-10-27 13:28 ` Jakub Narebski
  2009-10-27 13:32 ` Jan Krüger
  1 sibling, 0 replies; 3+ messages in thread
From: Jakub Narebski @ 2009-10-27 13:28 UTC (permalink / raw)
  To: Thomas Thurman; +Cc: git

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Autodiscovery of git repositories from HTML
  2009-10-27 13:00 Autodiscovery of git repositories from HTML Thomas Thurman
  2009-10-27 13:28 ` Jakub Narebski
@ 2009-10-27 13:32 ` Jan Krüger
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Krüger @ 2009-10-27 13:32 UTC (permalink / raw)
  To: Thomas Thurman; +Cc: git

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-10-27 13:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-27 13:00 Autodiscovery of git repositories from HTML Thomas Thurman
2009-10-27 13:28 ` Jakub Narebski
2009-10-27 13:32 ` Jan Krüger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).