Get message of tags using JGit
问题 I need for each commit, to get the name and message of the associated tag. I managed to get the tag name associated with my commit . But I can't get the message. I tried like this: String nameTag = ""; List<Ref> call = new Git(git.getRepository()).tagList().call(); // get all tags from repository for (Ref ref: call) { if ((ref.getObjectId().getName()).equals(commit.getName())) { Map<ObjectId, String> names = git.nameRev().add(ref.getObjectId()).addPrefix("refs/tags/").call(); nameTag = names