Class GitModifiedFilesLoader
java.lang.Object
com.google.gerrit.server.patch.gitdiff.GitModifiedFilesLoader
/** Class to load the files that have been modified between two Git trees.
 
Rename detection is off unless withRenameDetection(int) is called.
 
The commits and the commit trees are looked up via the RevWalk instance that is
 provided to the load(Config, ObjectReader, ObjectId, ObjectId) method.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<ModifiedFile>load(org.eclipse.jgit.lib.Config repoConfig, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.ObjectId aTree, org.eclipse.jgit.lib.ObjectId bTree) Loads the files that have been modified betweenaTreeandbTree.withRenameDetection(int renameScore) Enables rename detection
- 
Constructor Details- 
GitModifiedFilesLoaderpublic GitModifiedFilesLoader()
 
- 
- 
Method Details- 
withRenameDetectionEnables rename detection- Parameters:
- renameScore- the score that should be used for the rename detection.
 
- 
loadpublic com.google.common.collect.ImmutableList<ModifiedFile> load(org.eclipse.jgit.lib.Config repoConfig, org.eclipse.jgit.lib.ObjectReader reader, org.eclipse.jgit.lib.ObjectId aTree, org.eclipse.jgit.lib.ObjectId bTree) throws IOException Loads the files that have been modified betweenaTreeandbTree.The trees are looked up via the given revWalkinstance,- Throws:
- IOException
 
 
-