public interface DistanceCalculator
| Modifier and Type | Interface and Description |
|---|---|
static class |
DistanceCalculator.DepthWalkDistanceCalculator |
| Modifier and Type | Method and Description |
|---|---|
static DistanceCalculator |
create(org.eclipse.jgit.lib.ObjectId start,
org.eclipse.jgit.lib.Repository repository)
Creates a reusable
DistanceCalculator on the given repository for the given start commit,
uses Integer.MAX_VALUE as the maximum depth distance. |
static DistanceCalculator |
create(org.eclipse.jgit.lib.ObjectId start,
org.eclipse.jgit.lib.Repository repository,
int maxDepth)
Creates a reusable
DistanceCalculator on the given repository for the given start commit. |
Optional<Integer> |
distanceTo(org.eclipse.jgit.lib.ObjectId target)
Computes an eventual distance between the start commit given at build time and the provided target commit.
|
static DistanceCalculator create(org.eclipse.jgit.lib.ObjectId start, org.eclipse.jgit.lib.Repository repository, int maxDepth)
DistanceCalculator on the given repository for the given start commit.start - the commit where the computation will startrepository - the repository on which to operatemaxDepth - the maximum depth to which we accept to look at. If <= 0 then Integer.MAX_VALUE will be used.DistanceCalculator objectstatic DistanceCalculator create(org.eclipse.jgit.lib.ObjectId start, org.eclipse.jgit.lib.Repository repository)
DistanceCalculator on the given repository for the given start commit,
uses Integer.MAX_VALUE as the maximum depth distance.create(ObjectId, Repository, int)Optional<Integer> distanceTo(org.eclipse.jgit.lib.ObjectId target)
target - the commit to compute distance forCopyright © 2016–2019 Matthieu Brouillard. All rights reserved.