Class FileDiffCacheKey
java.lang.Object
com.google.gerrit.server.patch.filediff.FileDiffCacheKey
Cache key for the
FileDiffCache
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileDiffCacheKey.Builder
builder()
abstract GitFileDiffCacheImpl.DiffAlgorithm
The diff algorithm that should be used in the computation.abstract org.eclipse.jgit.lib.ObjectId
The 20 bytes SHA-1 commit ID of the new commit used in the diff.abstract String
File path identified by its name.abstract org.eclipse.jgit.lib.ObjectId
The 20 bytes SHA-1 commit ID of the old commit used in the diff.abstract Project.NameKey
project()
A specific git project / repository.abstract int
Percentage score used to identify a file as a "rename".abstract FileDiffCacheKey.Builder
abstract boolean
Employ a timeout on the git computation while formatting the file header.int
weight()
Number of bytes that this entity occupies.abstract DiffPreferencesInfo.Whitespace
-
Constructor Details
-
FileDiffCacheKey
public FileDiffCacheKey()
-
-
Method Details
-
project
A specific git project / repository. -
oldCommit
public abstract org.eclipse.jgit.lib.ObjectId oldCommit()The 20 bytes SHA-1 commit ID of the old commit used in the diff. If set toObjectId.zeroId()
, an empty tree is used for the diff. -
newCommit
public abstract org.eclipse.jgit.lib.ObjectId newCommit()The 20 bytes SHA-1 commit ID of the new commit used in the diff. -
newFilePath
File path identified by its name. -
renameScore
public abstract int renameScore()Percentage score used to identify a file as a "rename". A special value of -1 means that the computation will ignore renames and rename detection will be disabled. -
diffAlgorithm
The diff algorithm that should be used in the computation. -
whitespace
-
useTimeout
public abstract boolean useTimeout()Employ a timeout on the git computation while formatting the file header. -
weight
public int weight()Number of bytes that this entity occupies. -
builder
-
toBuilder
-