Re: git "tag" objects implemented - and a re-done commit
- From
Linus Torvalds <torvalds@osdl.org>
- Date
- Apr 25, 2005, 20:42 UTC
- Message-ID
- <Pine.LNX.4.58.0504251339020.18901@ppc970.osdl.org>
- In-Reply-To
- <Pine.LNX.4.58.0504251318290.11481@sam.ics.uci.edu>
On Mon, 25 Apr 2005, Andreas Gal wrote:
> > Are tag objects referenced by trees (and thus limited in scope) or are > they stand-alone entities in the repository? The latter would be bad for > shared object storages.
They are totally stand-alone, and I don't see why that would be bad for shared object storage.
In fact, the whole point of them is that since they are named by the SHA1 hash of the content, there are no shared object issues. Two different tags by two different developers will have different names, exactly the same way two different releases will have different names.
And if two different developers tag exactly the same object with exactly the same tag-name and exactly the same signature, then they get the same tag object, and that's fine. They should.
> Also, if I delete and recreate tags, will the old tag remain in the tree > or will the file in the object storage disapear?
Tags in no way affect the entry they name. When you remove - or add - a tag object, nothing happens to anything else.
Linus