if (!refSpecs.isEmpty()) {
checkParameter(!(resolve_geogig_dir || is_inside_work_tree),
"if refSpec is given, --resolve-geogig-dir or --is-inside-work-tree shall not be specified");
ConsoleReader console = cli.getConsole();
for (String refSpec : this.refSpecs) {
Optional<ObjectId> resolved = geogig
.command(org.locationtech.geogig.api.plumbing.RevParse.class)
.setRefSpec(refSpec).call();
checkParameter(resolved.isPresent(), "fatal: ambiguous argument '%s': "
+ "unknown revision or path not in the working tree.", refSpec);
console.println(resolved.get().toString());