long changeCount = insertChanges(cli, changes, featureFilter);
console.print(String.format("Applied %,d changes, staging...", changeCount));
console.flush();
ObjectId afterTreeId = workingTree.getTree().getId();
DiffObjectCount diffCount = geogig.command(DiffCount.class)
.setOldVersion(workTreeId.toString()).setNewVersion(afterTreeId.toString())
.call();
geogig.command(AddOp.class).call();
console.println(String.format("done. %,d changes actually applied.",