All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Ed Warnicke <hagbard@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: URI Scheme for git object ids?
Date: Tue, 01 Mar 2022 09:40:27 -0800	[thread overview]
Message-ID: <xmqqy21tr2pg.fsf@gitster.g> (raw)
In-Reply-To: <CAFVSqg1arVNwWMANwR6CDP++5hXAEW1a_ajekNe+TXNpSSZFPA@mail.gmail.com> (Ed Warnicke's message of "Tue, 1 Mar 2022 11:35:52 -0600")

Ed Warnicke <hagbard@gmail.com> writes:

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


  reply	other threads:[~2022-03-01 17:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-03-01 17:35 URI Scheme for git object ids? Ed Warnicke
2022-03-01 17:40 ` Junio C Hamano [this message]
2022-03-01 17:43   ` Ed Warnicke
2022-03-01 17:53 ` Konstantin Ryabitsev
2022-03-01 17:58   ` Ed Warnicke
2022-03-01 18:30     ` Konstantin Ryabitsev
2022-03-01 21:09       ` Ed Warnicke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=xmqqy21tr2pg.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=hagbard@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.