/** * 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(); } }
final RevObject o = nextObject(); if (o == null) break;
objectsMap, edgeObjects, reader); RevObject o; while ((o = walker.nextObject()) != null) { if (o.has(RevFlag.UNINTERESTING)) continue; while ((o = walker.nextObject()) != null) { if (o.has(RevFlag.UNINTERESTING)) continue;
while ((ro = walker.nextObject()) != null) { bitmapResult.addObject(ro, ro.getType()); pm.update(1);
/** * 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(); } }
protected int walkLoop() throws Exception { int n = 0; for (final RevCommit c : walk) { if (++n > maxCount && maxCount >= 0) break; show(c); } if (walk instanceof ObjectWalk) { final ObjectWalk ow = (ObjectWalk) walk; for (;;) { final RevObject obj = ow.nextObject(); if (obj == null) break; show(ow, obj); } } return n; }
/** * 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 static void findLfsPointers(Set<LfsPointer> toPush, ObjectWalk walk) throws MissingObjectException, IncorrectObjectTypeException, IOException { RevObject obj; ObjectReader r = walk.getObjectReader(); while ((obj = walk.nextObject()) != null) { if (obj.getType() == Constants.OBJ_BLOB && getObjectSize(r, obj) < LfsPointer.SIZE_THRESHOLD) { LfsPointer ptr = loadLfsPointer(r, obj); if (ptr != null) { toPush.add(ptr); } } } }
final RevObject o = nextObject(); if (o == null) break;
final RevObject o = nextObject(); if (o == null) break;
final RevObject o = nextObject(); if (o == null) break;
while ((o = ow.nextObject()) != null) { checking.update(1); if (o.has(RevFlag.UNINTERESTING))
final RevObject o = ow.nextObject(); if (o == null) break;
final RevObject o = ow.nextObject(); if (o == null) break;
while ((ro = walker.nextObject()) != null) { bitmapResult.addObject(ro, ro.getType()); pm.update(1);
while ((ro = walker.nextObject()) != null) { bitmapResult.addObject(ro, ro.getType()); pm.update(1);
while ((ro = walker.nextObject()) != null) { bitmapResult.addObject(ro, ro.getType()); pm.update(1);
final RevObject o = ow.nextObject(); if (o == null) break;
while ((o = ow.nextObject()) != null) { checking.update(1); if (o.has(RevFlag.UNINTERESTING))
while ((o = ow.nextObject()) != null) { checking.update(1); if (o.has(RevFlag.UNINTERESTING))