/** * Write one reference to the reftable. * <p> * References must be passed in sorted order. * * @param ref * the reference to store. * @throws java.io.IOException * if reftable cannot be written. */ public void writeRef(Ref ref) throws IOException { writeRef(ref, maxUpdateIndex); }
private void mergeRefs(MergedReftable mr) throws IOException { try (RefCursor rc = mr.allRefs()) { while (rc.next()) { writer.writeRef(rc.getRef(), rc.getUpdateIndex()); } } }
/** * Write one reference to the reftable. * <p> * References must be passed in sorted order. * * @param ref * the reference to store. * @throws java.io.IOException * if reftable cannot be written. */ public void writeRef(Ref ref) throws IOException { writeRef(ref, maxUpdateIndex); }
private void mergeRefs(MergedReftable mr) throws IOException { try (RefCursor rc = mr.allRefs()) { while (rc.next()) { writer.writeRef(rc.getRef(), rc.getUpdateIndex()); } } }