From: Avery Pennarun <apenwarr@gmail.com>
To: Avi Kivity <avi@redhat.com>
Cc: git@vger.kernel.org
Subject: Re: Feature request: separate namespace for remote tags
Date: Mon, 22 Feb 2010 13:22:57 -0500 [thread overview]
Message-ID: <32541b131002221022h57c6bf05mdeb8d27cdbbd1f54@mail.gmail.com> (raw)
In-Reply-To: <4B827C48.9060601@redhat.com>
On Mon, Feb 22, 2010 at 7:44 AM, Avi Kivity <avi@redhat.com> wrote:
> Currently, 'git remote add foo ...' will allocate a separate namespace for
> foo branches (refs/remotes/foo/*) but will store foo tags in the main tag
> namespace (refs/tags/*). This leads to several problems:
>
> - the main tag namespace becomes polluted with zillions of tags
> - if the tags from a remote conflict with a local (or perhaps another
> remote) tag, information is lost
> - 'git remote rm' will not delete the remote tags, and so 'git gc' will not
> recover much of the space used by the remote
I've sometimes wished for such a feature myself. When merging things
using git-subtree, for example, you can easily end up importing
"v1.2.3" type tags from two different projects and causing yourself
total confusion.
However, just dividing the tags into namespaces removes one of the
nicest features of tags, which is that they uniquely identify a
particular revision across all repositories. The whole point is that
ap/v1.2.3 isn't ever supposed to differ from origin/v1.2.3.
One option would be to split the tags into namespaces, but then
automatically search all namespaces when looking for a particular tag.
Then when you drop a particular remote, you'd lose all its tags, but
if you *don't* drop that remote, things look like they always have.
Have fun,
Avery
next prev parent reply other threads:[~2010-02-22 18:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-22 12:44 Feature request: separate namespace for remote tags Avi Kivity
2010-02-22 18:22 ` Avery Pennarun [this message]
2010-02-22 18:35 ` Avi Kivity
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=32541b131002221022h57c6bf05mdeb8d27cdbbd1f54@mail.gmail.com \
--to=apenwarr@gmail.com \
--cc=avi@redhat.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).