ObjectId objectId = treeWalk.getObjectId(0);
ObjectLoader loader = repository.open(objectId);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
loader.copyTo(stream);
revWalk.dispose();
<BUG>return IOUtils.readLines(new ByteArrayInputStream(stream.toByteArray())).size();
</BUG>
}
}
}

ObjectId objectId = treeWalk.getObjectId(0);
ObjectLoader loader = repository.open(objectId);
ByteArrayOutputStream stream = new ByteArrayOutputStream();
loader.copyTo(stream);
revWalk.dispose();
return IOUtils.readLines(new ByteArrayInputStream(stream.toByteArray()), "UTF-8").size();
