in src/main/java/com/ericsson/gerrit/plugins/gcconductor/EvaluationTask.java [216:231]
private void removeReferenced(Set<ObjectId> id2File, ObjectWalk w) throws IOException {
RevObject ro = w.next();
while (ro != null) {
if (id2File.remove(ro.getId()) && id2File.isEmpty()) {
return;
}
ro = w.next();
}
ro = w.nextObject();
while (ro != null) {
if (id2File.remove(ro.getId()) && id2File.isEmpty()) {
return;
}
ro = w.nextObject();
}
}