Robin Rosenberg skrev 2011-09-13 23.14:
> Kamal skrev 2011-09-13 22.52:
>> Can someone provide sample code snippet on how to retrieve the tag
>> information from a git repository
> Map<String, Ref> tags = repository.getTags();
and you need to peel annoateted tags to get a reference
Kamal skrev 2011-09-21 03.26:
> Thanks Robin & Matthias.
> My requirement is to identify whether any tag is associated with a
> specific commit, if so i need to retrieve the tag.
> can you tell how can i retrieve based on the commit hash
You have to do the reverse lookup yourself, i.e. take all tags
and build a map with the target objects as key.