checkParameter(limit >= 0, "Limit must be 0 or greater.");
ConsoleReader console = cli.getConsole();
GeoGIG geogig = cli.getGeogig();
StatusOp op = geogig.command(StatusOp.class);
StatusSummary summary = op.call();
final Optional<Ref> currHead = geogig.command(RefParse.class).setName(Ref.HEAD).call();
checkParameter(currHead.isPresent(), "Repository has no HEAD.");
if (currHead.get() instanceof SymRef) {