From: Junio C Hamano <junkio@cox.net>
To: ebiederm@xmission.com (Eric W. Biederman)
Cc: git@vger.kernel.org
Subject: Re: [PATCH] git-revover-tags-script
Date: Sun, 17 Jul 2005 23:36:16 -0700 [thread overview]
Message-ID: <7vr7dw8vtr.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: m164v8oenn.fsf@ebiederm.dsl.xmission.com
ebiederm@xmission.com (Eric W. Biederman) writes:
> The big question is in what format should we return the heads?
> Just a space separated list of sha1's or a directory hierarchy
> like git-clone-pack uses.
My knee-jerk reaction is something like this:
$ git-list-remote jg-libata
9956d54ace3c64512d0c5498e0137180741e5d04 heads/adma
433e7832818faf93c0f366fea3e14773cdcf3811 heads/adma-mwi
...
80ebd62e0cca50869da2d5159fa4d6b723f0c014 heads/sil24
9e734775f7c22d2f89943ad6c745571f1930105f tags/v2.6.12-rc2
26791a8bcf0e6d33f43aef7682bdb555236d56de tags/v2.6.12
...
a339981ec18d304f9efeb9ccf01b1f04302edf32 tags/v2.6.13-rc3
That is, SHA1 and path relative to .git/refs separated with a
TAB, and terminated with LF.
I do not care too much about the protocol level, but since we
are not talking about hundreds of heads and tags, probably
the simplest would be to match the same, or use SP instead of
TAB there to match upload-pack protocol.
I think the bigger question is how to help the user manage and
store this information in his .git/refs/tags hierarchy.
The mechanism to store the URL and head in branches/<name>, and
copy the head value in the corresponding refs/heads/<name> was
borrowed from Cogito, and I think it covers the refs/heads side
quite well. The user gives a name to the branch of a foreign
repository he is interested in, the fetched head from there is
stored in the same <name>, so the namespace under refs/heads and
branches are totally under the user's control.
If somebody cares about automated fetching of all the tags from
a remote repository, probably the easiest way would be to create
a subdirectory that corresponds to the short-hand name and use
that directory to store all tags slurped from there. But I am
not convinced myself this is that much useful.
next prev parent reply other threads:[~2005-07-18 6:36 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-16 20:20 [PATCH] git-revover-tags-script Eric W. Biederman
2005-07-17 0:51 ` Junio C Hamano
2005-07-17 8:40 ` Eric W. Biederman
2005-07-17 18:53 ` Junio C Hamano
2005-07-18 0:06 ` Eric W. Biederman
2005-07-18 1:13 ` Junio C Hamano
2005-07-18 5:40 ` Eric W. Biederman
2005-07-18 6:36 ` Junio C Hamano [this message]
2005-07-18 0:19 ` Eric W. Biederman
2005-07-20 0:20 ` [RFD] server-info to help clients Junio C Hamano
2005-07-20 0:35 ` David Lang
2005-07-20 1:53 ` Junio C Hamano
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=7vr7dw8vtr.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=ebiederm@xmission.com \
--cc=git@vger.kernel.org \
/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 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).