Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.git.merge.execution

public final Class MergeBookkeeper

extends Object
Class Inheritance
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.Objects, .Optional, org.jabref.logic.JabRefException, org.jabref.logic.git.GitHandler, org.jabref.logic.git.io.GitFileReader, .GitRevisionLocator, org.jabref.logic.git.model.BookkeepingResult, .PullPlan, org.jabref.logic.git.util.GitHandlerRegistry, org.eclipse.jgit.api.Git, org.eclipse.jgit.api.errors.GitAPIException, org.eclipse.jgit.dircache.DirCache, org.eclipse.jgit.lib.CommitBuilder, .Constants, .ObjectId, .ObjectInserter, .PersonIdent, .RefUpdate, .Repository, org.eclipse.jgit.revwalk.RevCommit

Record the GUI-produced merge result into Git history. Creates the right commit shape based on the merge graph:

Preconditions:

Field Summary

Modifier and TypeField and Description
private final GitHandlerRegistry

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static boolean
blobEqualsCommitPath(Git git, RevCommit commit, String relativePath, Path file)

private BookkeepingResult
commitWithParents(Repository repo, String branchRef, ObjectId treeId, String message, ObjectId... parents)

public BookkeepingResult
resultRecord(Path bibFilePath, PullPlan computation)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

registryback to summary
private final GitHandlerRegistry registry

Constructor Detail

MergeBookkeeperback to summary
public MergeBookkeeper(GitHandlerRegistry registry)

Method Detail

blobEqualsCommitPathback to summary
private static boolean blobEqualsCommitPath(Git git, RevCommit commit, String relativePath, Path file) throws JabRefException, IOException
commitWithParentsback to summary
private BookkeepingResult commitWithParents(Repository repo, String branchRef, ObjectId treeId, String message, ObjectId... parents) throws IOException
resultRecordback to summary
public BookkeepingResult resultRecord(Path bibFilePath, PullPlan computation) throws IOException, GitAPIException, JabRefException