StringUtils.encodeURL(model.name), commit.getName());\r
entry.published = commit.getCommitterIdent().getWhen();\r
entry.contentType = "text/html";\r
- String message = GitBlit.self().processCommitMessage(model.name, commit.getFullMessage());\r
+ String message = GitBlit.self().processCommitMessage(model.name,\r
+ commit.getFullMessage());\r
entry.content = message;\r
entry.repository = model.name;\r
- entry.branch = objectId;\r
+ entry.branch = objectId; \r
+ entry.tags = new ArrayList<String>();\r
+ \r
+ // add commit id and parent commit ids\r
+ entry.tags.add("commit:" + commit.getName());\r
+ for (RevCommit parent : commit.getParents()) {\r
+ entry.tags.add("parent:" + parent.getName());\r
+ }\r
+ \r
+ // add refs to tabs list\r
List<RefModel> refs = allRefs.get(commit.getId());\r
if (refs != null && refs.size() > 0) {\r
- List<String> tags = new ArrayList<String>();\r
for (RefModel ref : refs) {\r
- tags.add(ref.getName());\r
+ entry.tags.add("ref:" + ref.getName());\r
}\r
- entry.tags = tags;\r
- }\r
+ } \r
entries.add(entry);\r
}\r
String feedLink;\r