git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: URI Scheme for git object ids?

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 1, 2022, 17:40 UTC
Message-ID
<xmqqy21tr2pg.fsf@gitster.g>
In-Reply-To
<CAFVSqg1arVNwWMANwR6CDP++5hXAEW1a_ajekNe+TXNpSSZFPA@mail.gmail.com>
Ed Warnicke <hagbard@gmail.com> writes:
Show 17 quoted lines
> Has there been any discussion of how one might represent a git object
> id as a urn or uri?
>
> It's clear that 'git:' is registered with IANA as a URI prefix for
> locations of git repos.
>
> I was wondering if there was any existing use of something like:
>
> 'gitoid:${type}:${hash type}:${hash of git object}' ?
>
> So for example:
>
> gitoid:blob:sha1:261eeb9e9f8b2b4b0d119366dda99c6fd7d35c64
>
> which could be used to communicate generic git object ids.
>
> Ed

I do not see why the object type should be there. Once you locate the object whose object name (in sha1) is 261eeb..., the object should be able to identify itself as a blob (or whatever type it is).

Aren't there already folks who are exchanging git objects over torrent or something? What do they use to identify what each node offers and what participants want?

Previous: Ed WarnickeNext: Ed Warnicke
Message 2 of 7 in “URI Scheme for git object ids?”
  1. Ed WarnickeMar 1, 2022
  2. Junio C HamanoMar 1, 2022
  3. Ed WarnickeMar 1, 2022
  4. Konstantin RyabitsevMar 1, 2022
  5. Ed WarnickeMar 1, 2022
  6. Konstantin RyabitsevMar 1, 2022
  7. Ed WarnickeMar 1, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.