@Override public boolean next() throws IOException { for (;;) { LogQueueEntry t = queue.poll(); if (t == null) { return false; } refName = t.lc.getRefName(); updateIndex = t.lc.getUpdateIndex(); entry = t.lc.getReflogEntry(); boolean include = includeDeletes || entry != null; skipShadowed(refName, updateIndex); add(t); if (include) { return true; } } }
while (lc.next()) { long updateIndex = lc.getUpdateIndex(); if (updateIndex < minUpdateIndex || updateIndex > maxUpdateIndex) { String refName = lc.getRefName(); ReflogEntry log = lc.getReflogEntry(); if (log == null) { if (includeDeletes) {
long index() { return lc.getUpdateIndex(); } }
@Override public void close() { while (!queue.isEmpty()) { queue.remove().lc.close(); } } }
String name() { return lc.getRefName(); }
while (lc.next()) { long updateIndex = lc.getUpdateIndex(); if (updateIndex < minUpdateIndex || updateIndex > maxUpdateIndex) { String refName = lc.getRefName(); ReflogEntry log = lc.getReflogEntry(); if (log == null) { if (includeDeletes) {
long index() { return lc.getUpdateIndex(); } }
@Override public void close() { while (!queue.isEmpty()) { queue.remove().lc.close(); } } }
String name() { return lc.getRefName(); }
@Override public boolean next() throws IOException { for (;;) { LogQueueEntry t = queue.poll(); if (t == null) { return false; } refName = t.lc.getRefName(); updateIndex = t.lc.getUpdateIndex(); entry = t.lc.getReflogEntry(); boolean include = includeDeletes || entry != null; skipShadowed(refName, updateIndex); add(t); if (include) { return true; } } }