formatter.setDiffComparator(RawTextComparator.DEFAULT);\r
\r
def diffs\r
- RevWalk rw = new RevWalk(repository);\r
+ RevWalk rw = new RevWalk(repository)\r
if (commit.parentCount > 0) {\r
- RevWalk rw = new RevWalk(repository);\r
- RevCommit parent = rw.parseCommit(commit.parents[0].id);\r
- rw.dispose();\r
+ RevCommit parent = rw.parseCommit(commit.parents[0].id)\r
diffs = formatter.scan(parent.tree, commit.tree)\r
} else {\r
diffs = formatter.scan(new EmptyTreeIterator(),\r
new CanonicalTreeParser(null, rw.objectReader, commit.tree))\r
}\r
+ rw.dispose()\r
// Write status table\r
builder.table('class':"plain") {\r
tbody() {\r