private String current;
- private WorkingTreeIterator ptr;
+ WorkingTreeIterator ptr;
WorkingTreeSource(WorkingTreeIterator iterator) {
this.tw = new TreeWalk((ObjectReader) null);
*/
public class HistogramDiff extends LowLevelDiffAlgorithm {
/** Algorithm to use when there are too many element occurrences. */
- private DiffAlgorithm fallback = MyersDiff.INSTANCE;
+ DiffAlgorithm fallback = MyersDiff.INSTANCE;
/**
* Maximum number of positions to consider for a given element hash.
* size is capped to ensure search is linear time at O(len_A + len_B) rather
* than quadratic at O(len_A * len_B).
*/
- private int maxChainLength = 64;
+ int maxChainLength = 64;
/**
* Set the algorithm used when there are too many element occurrences.
/** Always produce version 2 indexes, to get CRC data. */
private static final int INDEX_VERSION = 2;
- private final DfsObjDatabase db;
- private int compression = Deflater.BEST_COMPRESSION;
+ final DfsObjDatabase db;
+ int compression = Deflater.BEST_COMPRESSION;
- private List<PackedObjectInfo> objectList;
- private ObjectIdOwnerMap<PackedObjectInfo> objectMap;
+ List<PackedObjectInfo> objectList;
+ ObjectIdOwnerMap<PackedObjectInfo> objectMap;
- private DfsBlockCache cache;
- private DfsPackKey packKey;
- private DfsPackDescription packDsc;
- private PackStream packOut;
+ DfsBlockCache cache;
+ DfsPackKey packKey;
+ DfsPackDescription packDsc;
+ PackStream packOut;
private boolean rollback;
/**
private class PackStream extends OutputStream {
private final DfsOutputStream out;
private final MessageDigest md;
- private final byte[] hdrBuf;
+ final byte[] hdrBuf;
private final Deflater deflater;
private final int blockSize;
}
}
- private static final AtomicInteger packId = new AtomicInteger();
+ static final AtomicInteger packId = new AtomicInteger();
private final DfsObjDatabase objdb;
this(new Builder().setRepositoryDescription(repoDesc));
}
- private InMemoryRepository(Builder builder) {
+ InMemoryRepository(Builder builder) {
super(builder);
objdb = new MemObjDatabase(this);
refdb = new MemRefDatabase();
}
private static class MemPack extends DfsPackDescription {
- private final Map<PackExt, byte[]>
+ final Map<PackExt, byte[]>
fileMap = new HashMap<PackExt, byte[]>();
MemPack(String name, DfsRepositoryDescription repoDesc) {
public class MergeResult<S extends Sequence> implements Iterable<MergeChunk> {
private final List<S> sequences;
- private final IntList chunks = new IntList();
+ final IntList chunks = new IntList();
private boolean containsConflicts = false;
return sequences;
}
- private static final ConflictState[] states = ConflictState.values();
+ static final ConflictState[] states = ConflictState.values();
/**
* @return an iterator over the MergeChunks. The iterator does not support