Class GitModifiedFilesCacheKey
java.lang.Object
com.google.gerrit.server.patch.gitdiff.GitModifiedFilesCacheKey
Cache key for the 
GitModifiedFilesCache.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enum
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract org.eclipse.jgit.lib.ObjectIdaTree()The git SHA-1ObjectIdof the first git tree object for which the diff should be computed.abstract org.eclipse.jgit.lib.ObjectIdbTree()The git SHA-1ObjectIdof the second git tree object for which the diff should be computed.builder()static GitModifiedFilesCacheKeycreate(Project.NameKey project, org.eclipse.jgit.lib.ObjectId aCommit, org.eclipse.jgit.lib.ObjectId bCommit, int renameScore, org.eclipse.jgit.revwalk.RevWalk rw) abstract Project.NameKeyproject()A specific git project / repository.booleanReturns true if rename detection was set for this key.abstract intPercentage score used to identify a file as a rename.intweight()Returns the size of the object in bytes
- 
Constructor Details- 
GitModifiedFilesCacheKeypublic GitModifiedFilesCacheKey()
 
- 
- 
Method Details- 
projectA specific git project / repository.
- 
aTreepublic abstract org.eclipse.jgit.lib.ObjectId aTree()The git SHA-1ObjectIdof the first git tree object for which the diff should be computed. If equals toObjectId.zeroId(), a null tree is used for the diff scan, andbTree()is treated as an added tree.
- 
bTreepublic abstract org.eclipse.jgit.lib.ObjectId bTree()The git SHA-1ObjectIdof the second git tree object for which the diff should be computed.
- 
renameScorepublic abstract int renameScore()Percentage score used to identify a file as a rename. This value is only available ifrenameDetection()is true. Otherwise, this method will return -1.This value will be used to set the rename score of DiffFormatter.getRenameDetector().
- 
renameDetectionpublic boolean renameDetection()Returns true if rename detection was set for this key.
- 
createpublic static GitModifiedFilesCacheKey create(Project.NameKey project, org.eclipse.jgit.lib.ObjectId aCommit, org.eclipse.jgit.lib.ObjectId bCommit, int renameScore, org.eclipse.jgit.revwalk.RevWalk rw) throws IOException - Throws:
- IOException
 
- 
builder
- 
weightpublic int weight()Returns the size of the object in bytes
 
-