Verified Owner
Top Description Constructors Methods
org.jabref.logic.git.io

public Class GitRevisionLocator

extends Object
Class Inheritance
Imports
java.io.IOException, java.util.Optional, org.jabref.logic.JabRefException, org.eclipse.jgit.api.Git, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.lib.BranchConfig, .Constants, .ObjectId, .Ref, .Repository, org.eclipse.jgit.revwalk.RevCommit, .RevWalk, org.eclipse.jgit.revwalk.filter.RevFilter

Locates the three key commits required for a semantic merge:

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static RevCommit
public static boolean
isAncestor(Repository repo, ObjectId maybeAncestor, ObjectId commit)

public RevisionTriple
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

GitRevisionLocatorback to summary
public GitRevisionLocator()

Method Detail

findMergeBaseback to summary
public static RevCommit findMergeBase(Repository repo, RevCommit a, RevCommit b) throws IOException
isAncestorback to summary
public static boolean isAncestor(Repository repo, ObjectId maybeAncestor, ObjectId commit) throws IOException
locateMergeCommitsback to summary
public RevisionTriple locateMergeCommits(Git git) throws GitAPIException, IOException, JabRefException