Verified Owner
Top Fields Constructors Methods
org.jabref.logic.git.diff

public Class GitDiffChecker

extends Object
Class Inheritance
Annotations
@NullMarked
Imports
java.io.IOException, java.nio.file.Files, .Path, java.util.Optional, org.jabref.logic.git.GitHandler, org.jabref.logic.importer.ImportFormatPreferences, org.jabref.logic.importer.fileformat.BibtexImporter, org.jabref.model.database.BibDatabaseContext, org.jabref.model.util.FileUpdateMonitor, org.eclipse.jgit.api.Git, org.eclipse.jgit.lib.ObjectId, .ObjectLoader, .Repository, org.eclipse.jgit.revwalk.RevCommit, .RevWalk, org.eclipse.jgit.treewalk.TreeWalk, org.jspecify.annotations.NullMarked, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Logger

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static BibDatabaseContext
checkDiffAgainstLastCommit(GitHandler gitHandler, Path filepath, ImportFormatPreferences importFormatPreferences, FileUpdateMonitor fileUpdateMonitor)

public static BibDatabaseContext
checkSavedWorkingTreeVersion(Path savedFilePath, ImportFormatPreferences importFormatPreferences, FileUpdateMonitor fileUpdateMonitor)

private static Optional<byte[]>
readBlobBytesFromHead(Repository repository, String relativePath)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

GitDiffCheckerback to summary
public GitDiffChecker()

Method Detail

checkDiffAgainstLastCommitback to summary
public static BibDatabaseContext checkDiffAgainstLastCommit(GitHandler gitHandler, Path filepath, ImportFormatPreferences importFormatPreferences, FileUpdateMonitor fileUpdateMonitor) throws IOException
checkSavedWorkingTreeVersionback to summary
public static BibDatabaseContext checkSavedWorkingTreeVersion(Path savedFilePath, ImportFormatPreferences importFormatPreferences, FileUpdateMonitor fileUpdateMonitor) throws IOException
readBlobBytesFromHeadback to summary
private static Optional<byte[]> readBlobBytesFromHead(Repository repository, String relativePath) throws IOException