public class JGitCommon extends Object
| Constructor and Description |
|---|
JGitCommon() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
distanceBetween(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.revwalk.RevCommit child,
org.eclipse.jgit.revwalk.RevCommit parent)
Calculates the distance (number of commits) between the given parent and child commits.
|
List<org.eclipse.jgit.revwalk.RevCommit> |
findCommitsUntilSomeTag(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.revwalk.RevCommit head,
Map<org.eclipse.jgit.lib.ObjectId,List<String>> tagObjectIdToName) |
String |
getClosestTagCommitCount(LoggerBridge loggerBridge,
org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.revwalk.RevCommit headCommit) |
String |
getClosestTagName(LoggerBridge loggerBridge,
org.eclipse.jgit.lib.Repository repo) |
protected Map<org.eclipse.jgit.lib.ObjectId,List<DatedRevTag>> |
getCommitIdsToTags(LoggerBridge loggerBridge,
org.eclipse.jgit.lib.Repository repo,
boolean includeLightweightTags,
String matchPattern) |
Collection<String> |
getTags(org.eclipse.jgit.lib.Repository repo,
org.eclipse.jgit.lib.ObjectId headId) |
protected HashMap<org.eclipse.jgit.lib.ObjectId,List<String>> |
transformRevTagsMapToDateSortedTagNames(Map<org.eclipse.jgit.lib.ObjectId,List<DatedRevTag>> commitIdsToTags) |
protected String |
trimFullTagName(String tagName) |
public Collection<String> getTags(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.lib.ObjectId headId) throws org.eclipse.jgit.api.errors.GitAPIException
org.eclipse.jgit.api.errors.GitAPIExceptionpublic String getClosestTagName(@NotNull LoggerBridge loggerBridge, @NotNull org.eclipse.jgit.lib.Repository repo)
public String getClosestTagCommitCount(@NotNull LoggerBridge loggerBridge, @NotNull org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevCommit headCommit)
protected Map<org.eclipse.jgit.lib.ObjectId,List<DatedRevTag>> getCommitIdsToTags(@NotNull LoggerBridge loggerBridge, @NotNull org.eclipse.jgit.lib.Repository repo, boolean includeLightweightTags, String matchPattern)
protected HashMap<org.eclipse.jgit.lib.ObjectId,List<String>> transformRevTagsMapToDateSortedTagNames(Map<org.eclipse.jgit.lib.ObjectId,List<DatedRevTag>> commitIdsToTags)
public List<org.eclipse.jgit.revwalk.RevCommit> findCommitsUntilSomeTag(org.eclipse.jgit.lib.Repository repo, org.eclipse.jgit.revwalk.RevCommit head, @NotNull Map<org.eclipse.jgit.lib.ObjectId,List<String>> tagObjectIdToName)
protected int distanceBetween(@NotNull
org.eclipse.jgit.lib.Repository repo,
@NotNull
org.eclipse.jgit.revwalk.RevCommit child,
@NotNull
org.eclipse.jgit.revwalk.RevCommit parent)
Copyright © 2015. All Rights Reserved.