int added = 0;
int modified = 0;
int removed = 0;
// If it's a shallow clone, the commit may not exist
if (parent.equals(ObjectId.NULL) || geogig.stagingDatabase().exists(parent)) {
final Iterator<DiffEntry> diff = geogig.command(DiffOp.class)
.setOldVersion(parent).setNewVersion(input.getId())
.setFilter(pathFilter).call();
while (diff.hasNext()) {