public void diffSingleFile() throws Exception {
add("file.txt", "a\nb\nc");
add("file.txt", "a\nb2\nc");
add("file.txt", "");
final List<Integer> counts = new ArrayList<Integer>();
DiffCountFilter filter = new DiffCountFilter() {
protected boolean include(RevCommit commit,
Collection<DiffEntry> diffs, int diffCount) {
counts.add(0, diffCount);
return true;