/** * Remove all entries from a map which key is the id of an object referenced * by the given ObjectWalk * * @param id2File * @param w * @throws MissingObjectException * @throws IncorrectObjectTypeException * @throws IOException */ private void removeReferenced(Map<ObjectId, File> id2File, ObjectWalk w) throws MissingObjectException, IncorrectObjectTypeException, IOException { RevObject ro = w.next(); while (ro != null) { checkCancelled(); if (id2File.remove(ro.getId()) != null && id2File.isEmpty()) { return; } ro = w.next(); } ro = w.nextObject(); while (ro != null) { checkCancelled(); if (id2File.remove(ro.getId()) != null && id2File.isEmpty()) { return; } ro = w.nextObject(); } }
private Set<LfsPointer> findObjectsToPush() throws IOException, MissingObjectException, IncorrectObjectTypeException { Set<LfsPointer> toPush = new TreeSet<>(); try (ObjectWalk walk = new ObjectWalk(getRepository())) { for (RemoteRefUpdate up : refs) { walk.setRewriteParents(false); excludeRemoteRefs(walk); walk.markStart(walk.parseCommit(up.getNewObjectId())); while (walk.next() != null) { // walk all commits to populate objects } findLfsPointers(toPush, walk); } } return toPush; }
IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = next(); if (c == null) break;
Set<ObjectId> roots = new HashSet<>(); RevCommit c; while ((c = walker.next()) != null) { if (exclude(c)) continue;
while (walker.next() != null) {
/** * Remove all entries from a map which key is the id of an object referenced * by the given ObjectWalk * * @param id2File * @param w * @throws MissingObjectException * @throws IncorrectObjectTypeException * @throws IOException */ private void removeReferenced(Map<ObjectId, File> id2File, ObjectWalk w) throws MissingObjectException, IncorrectObjectTypeException, IOException { RevObject ro = w.next(); while (ro != null) { if (id2File.remove(ro.getId()) != null) if (id2File.isEmpty()) return; ro = w.next(); } ro = w.nextObject(); while (ro != null) { if (id2File.remove(ro.getId()) != null) if (id2File.isEmpty()) return; ro = w.nextObject(); } }
/** * Remove all entries from a map which key is the id of an object referenced * by the given ObjectWalk * * @param id2File * @param w * @throws MissingObjectException * @throws IncorrectObjectTypeException * @throws IOException */ private void removeReferenced(Map<ObjectId, File> id2File, ObjectWalk w) throws MissingObjectException, IncorrectObjectTypeException, IOException { RevObject ro = w.next(); while (ro != null) { checkCancelled(); if (id2File.remove(ro.getId()) != null && id2File.isEmpty()) { return; } ro = w.next(); } ro = w.nextObject(); while (ro != null) { checkCancelled(); if (id2File.remove(ro.getId()) != null && id2File.isEmpty()) { return; } ro = w.nextObject(); } }
IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = next(); if (c == null) break;
IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = next(); if (c == null) break;
IncorrectObjectTypeException, IOException { for (;;) { final RevCommit c = next(); if (c == null) break;
ProgressMonitor.UNKNOWN); RevCommit c; while ((c = ow.next()) != null) { checking.update(1); if (providedObjects != null //
Set<ObjectId> roots = new HashSet<>(); RevCommit c; while ((c = walker.next()) != null) { if (exclude(c)) continue;
while (walker.next() != null) {
final RevCommit o = ow.next(); if (o == null) break;
final RevCommit o = ow.next(); if (o == null) break;
while (walker.next() != null) {
while (walker.next() != null) {
final RevCommit o = ow.next(); if (o == null) break;
ProgressMonitor.UNKNOWN); RevCommit c; while ((c = ow.next()) != null) { checking.update(1); if (providedObjects != null //
ProgressMonitor.UNKNOWN); RevCommit c; while ((c = ow.next()) != null) { checking.update(1); if (providedObjects != null //