Re: Tags
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Jul 2, 2005, 22:20 UTC
- Message-ID
- <Pine.LNX.4.58.0507021517220.8247@g5.osdl.org>
- In-Reply-To
- <42C70EEF.6050207@gmail.com>
On Sat, 2 Jul 2005, A Large Angry SCM wrote:
> > Why have tag objects at all?
Trust.
None of git itself normally has any "trust". The SHA1 means that the _integrity_ of the archive is ensured, but for some things (notably releases), you want to have something else. That's the "tag object".
And I really should probably have called them something else. _I_ personally tend to want to have a 1:1 relationship between my "tag references" (ie the 20-byte SHA1 pointer) and my "tag objects", but that's because my releases are things that I envision people may actually want to verify are mine.
In many cases, you'd never use a "tag object", and the "tag reference" would just point directly to a commit, with no extra indirect object.
Linus