We created a tag "2012/02/16" on our git repository. We then noticed that inside of Source Tree the 2012 and 01 were represented as folders which could neatly be opened and closed to reveal and hide the tags. Having a nested hierarchy of tags seems like a nice way to organize the tags instead of just having one flat list.
Is there an issue with doing this?
When I do a git ls-remote I see the following entries:
8430572c89362b875109628c33a18e782aa38488 refs/tags/2012/02/16
d247e38159c8c4998bf8b555edfd7ffe7b945255 refs/tags/2012/02/16^{}
I'm not sure what the ^{} characters at the end of the second tag mean and I want to make sure that this behavior we stumbled upon isn't something we should not be doing before we go and leverage it to clean up our tags.
We don't see the ^{} characters on our "un-nested" tags.
^{}
is a shorthand syntax to dereference a tag recursively until it finds a non-tag object. If you're not seeing it on your other tags, that may mean your other tags are lightweight tags instead of annotated tags.