{"thread":{"id":"21377","subject":"Autodiscovery of git repositories from HTML","startedAt":"2009-10-27T13:00:00Z","lastAt":"2009-10-27T13:32:29Z","messageCount":3,"participants":["Thomas Thurman","Jakub Narebski","Jan Krüger"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"126009","messageId":"20091027130000.GX30085@Dorothy.plexq.com","threadId":"21377","inReplyTo":null,"subject":"Autodiscovery of git repositories from HTML","fromName":"Thomas Thurman","fromEmail":"tthurman@gnome.org","sentAt":"2009-10-27T13:00:00Z","receivedAt":"2009-10-27T13:00:00Z","isPatch":false,"sender":{"key":"tthurman@gnome.org","avatar":null},"body":"I have a web page which lives in a git repository so that it can be \neasily mirrored.  I would like to use a \"rel\" link to the URL of the git \nrepository so that it can be automatically discovered, like an RSS feed:\n\n<link rel=\"alternate\" type=\"???\" href=\"http://example.com/.git\"/>\n\nIs there any existing convention as to what the type should be?\nNote that this isn't necessarily the same question as what a git \nrepository should be served as over HTTP: the Universal Edit Button uses \na dummy MIME type of \"application/x-wiki\".\n\nThomas\n-- \nThomas Thurman - thomas at thurman.org.uk - http://marnanel.org\nWhat if a dragon stole your library books? http://borrowable.net\n"},{"id":"126010","messageId":"m3vdi1c6fw.fsf@localhost.localdomain","threadId":"21377","inReplyTo":"20091027130000.GX30085@Dorothy.plexq.com","subject":"Re: Autodiscovery of git repositories from HTML","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2009-10-27T13:28:27Z","receivedAt":"2009-10-27T13:28:27Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"Thomas Thurman <tthurman@gnome.org> writes:\n\n> I have a web page which lives in a git repository so that it can be \n> easily mirrored.  I would like to use a \"rel\" link to the URL of the git \n> repository so that it can be automatically discovered, like an RSS feed:\n> \n> <link rel=\"alternate\" type=\"???\" href=\"http://example.com/.git\"/>\n> \n> Is there any existing convention as to what the type should be?\n> Note that this isn't necessarily the same question as what a git \n> repository should be served as over HTTP: the Universal Edit Button uses \n> a dummy MIME type of \"application/x-wiki\".\n\nSee proposal at http://joey.kitenet.net/rfc/rel-vcs/\n(which use 'rel' microformat, rather than 'type' microformat).\n\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"126011","messageId":"20091027143229.78140450@perceptron","threadId":"21377","inReplyTo":"20091027130000.GX30085@Dorothy.plexq.com","subject":"Re: Autodiscovery of git repositories from HTML","fromName":"Jan Krüger","fromEmail":"jk@jk.gs","sentAt":"2009-10-27T13:32:29Z","receivedAt":"2009-10-27T13:32:29Z","isPatch":false,"sender":{"key":"jk@jk.gs","avatar":"https://avatars.githubusercontent.com/u/1774?v=4"},"body":"> I have a web page which lives in a git repository so that it can be \n> easily mirrored.  I would like to use a \"rel\" link to the URL of the\n> git repository so that it can be automatically discovered, like an\n> RSS feed:\n> \n> <link rel=\"alternate\" type=\"???\" href=\"http://example.com/.git\"/>\n> \n> Is there any existing convention as to what the type should be?\n\nI don't think there is any such convention, since I don't think anyone\nhas done this before (but it would have interesting use cases).\n\nActually, I don't think rel=\"alternate\" describes the relation well; a\nrepository isn't exactly an alternate version of the document.\n\nIf we don't care about the standard, we might want to use something like\nthe widely used rel=\"shortcut icon\", e.g. rel=\"git repository\".\n\nJan\n"}]}