Re: [RFC] Plumbing-only support for storing object metadata
- From
Shawn O. Pearce <spearce@spearce.org>
- Date
- Aug 18, 2008, 23:28 UTC
- Message-ID
- <20080818232800.GD9572@spearce.org>
- In-Reply-To
- <48AA0487.8050009@gmail.com>
Marcus Griep <neoeinstein@gmail.com> wrote:
> I was under the impression that tags were references to commit objects, > and they to tree objects: > > tag -> commit -> tree
No. A tag can reference any object. See for example the junio-gpg-pub tag in git.git, it references a blob, not a commit. The linux-2.6.git tree has a tag which references a tree.
Tags may also reference other tags.
> Also, wouldn't this require large numbers tags, or the ability to multi- > target tags?
Tag objects don't have to have names in the repository's ref space, but it helps that they do when you are doing git-lost-found. Having a tag in the database which shouldn't have a ref name in refs/tags is more than a bit funny.
-- Shawn.