}\r
}\r
writer.commit();\r
-\r
- Document doc = createDocument(commit, null);\r
+ \r
+ // get any annotated commit tags\r
+ List<String> commitTags = new ArrayList<String>();\r
+ for (RefModel ref : JGitUtils.getTags(repository, true, -1)) {\r
+ if (ref.isAnnotatedTag() && ref.getReferencedObjectId().equals(commit.getId())) {\r
+ commitTags.add(ref.displayName);\r
+ }\r
+ }\r
+ \r
+ // create and write the Lucene document\r
+ Document doc = createDocument(commit, commitTags);\r
doc.add(new Field(FIELD_BRANCH, branch, Store.YES, Index.ANALYZED));\r
result.commitCount++;\r
result.success = index(repositoryName, doc);\r