void (T newTarget) { repoNode.setChecked(true); if (!newTarget.equals(model.getTarget()) || model.hasError() || !model.hasCommitInfo()) { model.setTarget(newTarget); model.clearErrors(); loadCommits(model, repoNode, false); } }