11 ms·
The v0.0.1 is just a label for the tag object itself. E.g. if you clone git.git you can see a tag for v2.16.2, the latest release. That you can re-create point
by avar 9y ago
The v0.0.1 is just a label for the tag object itself.
E.g. if you clone git.git you can see a tag for v2.16.2, the latest release. That you can re-create point to something entirely different.
But if you do:
$ git rev-parse v2.16.2
86aabcca24951ccfb9392014c8a379992434a7df
$ git rev-parse v2.16.2^{commit}
ffa952497288d29d94b16675c6789ef83850def3
You can see that the annotated tag object (GPG signature and all) is really called 86aabcca24951ccfb9392014c8a379992434a7df, and that it points to a commit ffa952497288d29d94b16675c6789ef83850def3.
That 86aabcca... is the immutable part of tags, just as commit objects are immutable.
Note that this only applies to annotated tags, lightweight tags just point to the commit object themselves, so they're really just a sort of branch name that git treats differently in not ever advancing it to another commit.