I'm just getting started with the JGit API, in hope to include it to our own project.

I'd like to tag a revision, and then, after a few more commits, lookup that tag (RevTag) by name so I can restore the tagged revision.
But I'm confused about how to get a list of existing tags or lookup up a particular one. I can create a tag but then how can I make use of it?