| Package | Description |
|---|---|
| fr.brouillard.oss.jgitver.impl |
| Modifier and Type | Class and Description |
|---|---|
static class |
DistanceCalculator.DepthWalkDistanceCalculator |
static class |
DistanceCalculator.FirstParentWalkDistanceCalculator
Calculates the distance by trying to find the target commit first on the main branch and then following any other branches.
|
static class |
DistanceCalculator.LogWalkDistanceCalculator
DistanceCalculator that mimics 'git log --typo-sort --oneline | wc -l' minus 1
|
| Modifier and Type | Method and Description |
|---|---|
static DistanceCalculator |
DistanceCalculator.create(org.eclipse.jgit.lib.AnyObjectId 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 |
DistanceCalculator.create(org.eclipse.jgit.lib.AnyObjectId start,
org.eclipse.jgit.lib.Repository repository,
int maxDepth)
Creates a reusable
DistanceCalculator on the given repository for the given start commit. |
Copyright © 2016–2021 Matthieu Brouillard. All rights reserved.