Re: Tags
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 2, 2005, 18:45 UTC
- Message-ID
- <Pine.LNX.4.58.0507021141350.4716@ppc970.osdl.org>
- In-Reply-To
- <42C6D5AD.9070304@zytor.com>
On Sat, 2 Jul 2005, H. Peter Anvin wrote:
> > Well, you're wrong. Tags is the only part of git which cannot be > protected by git's own self-validation system.
Well, you _can_ use the tag objects. That's what I do. The namespace isn't the tag name you use ("v2.6.12"), it's the name of the tag itself (in this case "26791a8bcf0e6d33f43aef7682bdb555236d56de"), and then it does actually distribute fine. The symbolic name is encoded within the tag, but isn't guaranteed to be unique in any way.
So no, it doesn't protect the tag _name_ per se. Anybody can create a tag called "v2.6.12", and I don't think there's any way to handle clashes sanely. But you can find the tag objects in a pack, and you could index them separately. Then you'd need to let the users decide which ones they trust or want to use.
Linus