Re: [RFC] Plumbing-only support for storing object metadata

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Marcus Griep <neoeinstein@xxxxxxxxx> 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.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux