Uses of Record Class
org.variantsync.diffdetective.datasets.PatchDiffParseOptions
Package
Description
-
Uses of PatchDiffParseOptions in org.variantsync.diffdetective
Modifier and TypeFieldDescriptionprivate final Function<Repository,
PatchDiffParseOptions> AnalysisRunner.Options.getParseOptionsForRepo
The field for thegetParseOptionsForRepo
record component.Modifier and TypeMethodDescriptionAnalysisRunner.Options.getParseOptionsForRepo()
Returns the value of thegetParseOptionsForRepo
record component.ModifierConstructorDescriptionOptions
(Path repositoriesDirectory, Path outputDirectory, Path datasetsFile, Function<Repository, PatchDiffParseOptions> getParseOptionsForRepo, Function<Repository, DiffFilter> getFilterForRepo, boolean preloadReposBeforeAnalysis, boolean pullRepositoriesBeforeAnalysis) Creates an instance of aOptions
record class. -
Uses of PatchDiffParseOptions in org.variantsync.diffdetective.datasets
Modifier and TypeFieldDescriptionstatic final PatchDiffParseOptions
PatchDiffParseOptions.Default
Default value for PatchDiffParseOptions that does not remember parsed unix diffs and uses the default value for the parsing VariationDiffs (VariationDiffParseOptions.Default
).private PatchDiffParseOptions
Repository.parseOptions
Options to configure parsing and memory consumption (e.g., by not keeping full diffs in memory).Modifier and TypeMethodDescriptionRepository.getParseOptions()
Options that should be used when parsing the evolution history.private static PatchDiffParseOptions
DatasetFactory.getParseOptionsFor
(String repositoryName) Returns the default parse options for the repository with the given name.PatchDiffParseOptions.withAnnotationParser
(AnnotationParser annotationParser) Creates PatchDiffParseOptions with the given annotation parser.PatchDiffParseOptions.withDiffStoragePolicy
(PatchDiffParseOptions.DiffStoragePolicy diffStoragePolicy) Creates PatchDiffParseOptions with the given policy for storing diffs.Modifier and TypeMethodDescriptionRepository.setParseOptions
(PatchDiffParseOptions parseOptions) Set options for parsing parts of this repository's evolution history.ModifierConstructorDescriptionRepository
(RepositoryLocationType repoLocation, Path localPath, URI remote, String repositoryName, PatchDiffParseOptions parseOptions, DiffFilter diffFilter) Creates a repository. -
Uses of PatchDiffParseOptions in org.variantsync.diffdetective.diff.git
Modifier and TypeMethodDescriptionstatic CommitDiffResult
GitDiffer.createCommitDiff
(org.eclipse.jgit.api.Git git, DiffFilter diffFilter, org.eclipse.jgit.revwalk.RevCommit parentCommit, org.eclipse.jgit.revwalk.RevCommit childCommit, PatchDiffParseOptions parseOptions) Creates a CommitDiff that describes all changes made by the given childCommit to the given parentCommit.static CommitDiffResult
GitDiffer.createCommitDiffFromFirstParent
(org.eclipse.jgit.api.Git git, DiffFilter diffFilter, org.eclipse.jgit.revwalk.RevCommit currentCommit, PatchDiffParseOptions parseOptions) Creates a CommitDiff from a given commit.static CommitDiffResult
GitDiffer.createWorkingTreeDiff
(org.eclipse.jgit.api.Git git, DiffFilter diffFilter, org.eclipse.jgit.revwalk.RevCommit commit, PatchDiffParseOptions parseOptions) The same asGitDiffer.createCommitDiff(Git, DiffFilter, RevCommit, RevCommit, PatchDiffParseOptions)
but diffs the given commit against the current working tree.private static CommitDiffResult
GitDiffer.getPatchDiffs
(org.eclipse.jgit.api.Git git, DiffFilter diffFilter, PatchDiffParseOptions parseOptions, org.eclipse.jgit.treewalk.AbstractTreeIterator prevTreeParser, org.eclipse.jgit.treewalk.AbstractTreeIterator currentTreeParser, org.eclipse.jgit.revwalk.RevCommit parentCommit, org.eclipse.jgit.revwalk.RevCommit childCommit) Obtains the CommitDiff between two commit's trees.