/** * Implements {@link Supplier#get()} by deferring to {@link #call()} * * @see #call() */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
/** * Implements {@link Supplier#get()} by deferring to {@link #call()} * * @see #call() */ @Override public AutoCloseableIterator<DiffEntry> get() { return call(); }
/** * Writes staged changes to the stream. * * @param setFilter the configured {@link DiffIndex} command * @param start the change number to start writing from * @param length the number of changes to write * @throws StreamWriterException */ public void writeStaged(DiffIndex setFilter, int start, int length) throws StreamWriterException { writeDiffEntries("staged", start, length, setFilter.call()); }
/** * @param pathFilter if specified, only changes that match the filter will be returned * @return an iterator for all of the differences between STAGE_HEAD and HEAD based on the path * filter. */ @Override public AutoCloseableIterator<DiffEntry> getStaged(final @Nullable List<String> pathFilters) { AutoCloseableIterator<DiffEntry> unstaged = context.command(DiffIndex.class) .setFilter(pathFilters).setReportTrees(true).call(); return unstaged; }
/** * @param pathFilter if specified, only changes that match the filter will be returned * @return an iterator for all of the differences between STAGE_HEAD and HEAD based on the path * filter. */ @Override public AutoCloseableIterator<DiffEntry> getStaged(final @Nullable List<String> pathFilters) { AutoCloseableIterator<DiffEntry> unstaged = context.command(DiffIndex.class) .setFilter(pathFilters).setReportTrees(true).call(); return unstaged; }
if (count > 0) { try (AutoCloseableIterator<DiffEntry> indexDiffs = this.geogigTx .command(DiffIndex.class).setMaxDiffs(10L).call()) { while (indexDiffs.hasNext()) { DiffEntry entry = indexDiffs.next();
diffIndex.setOldVersion(oldRefSpec); iterator = diffIndex.call(); } else if (newRefSpec == null) {
diffIndex.setOldVersion(oldRefSpec); iterator = diffIndex.call(); } else if (newRefSpec == null) {