in src/main/java/com/googlesource/gerrit/plugins/batch/BatchStore.java [92:105]
public List<Batch> find(boolean includeBatchInfo) throws IOException {
List<Batch> batches = new ArrayList<>();
try (Repository repo = repoManager.openRepository(project)) {
for (Ref ref : repo.getRefDatabase().getRefsByPrefix(BATCHES_REF)) {
String id = ref.getName().substring(BATCHES_REF.length());
try {
batches.add((includeBatchInfo == true) ? read(id) : new Batch(id));
} catch (NoSuchBatchException e) {
continue;
}
}
}
return batches;
}