Class GitFileDiffCacheKey
- java.lang.Object
-
- com.google.gerrit.server.patch.gitfilediff.GitFileDiffCacheKey
-
public abstract class GitFileDiffCacheKey extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GitFileDiffCacheKey.Builder
static class
GitFileDiffCacheKey.Serializer
-
Constructor Summary
Constructors Constructor Description GitFileDiffCacheKey()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static GitFileDiffCacheKey.Builder
builder()
abstract GitFileDiffCacheImpl.DiffAlgorithm
diffAlgorithm()
abstract String
newFilePath()
File name in the tree identified bynewTree()
abstract org.eclipse.jgit.lib.ObjectId
newTree()
The new 20 bytes SHA-1 git tree ID used in the git tree diffabstract org.eclipse.jgit.lib.ObjectId
oldTree()
The old 20 bytes SHA-1 git tree ID used in the git tree diff.abstract Project.NameKey
project()
A specific git project / repository.abstract int
renameScore()
Percentage score used to identify a file as a "rename".abstract boolean
useTimeout()
Employ a timeout on the git computation while formatting the file header.int
weight()
abstract DiffPreferencesInfo.Whitespace
whitespace()
-
-
-
Method Detail
-
project
public abstract Project.NameKey project()
A specific git project / repository.
-
oldTree
public abstract org.eclipse.jgit.lib.ObjectId oldTree()
The old 20 bytes SHA-1 git tree ID used in the git tree diff. If equals toObjectId.zeroId()
, a null tree is used for the diff scan, andnewTree()
()} is treated as an added tree.
-
newTree
public abstract org.eclipse.jgit.lib.ObjectId newTree()
The new 20 bytes SHA-1 git tree ID used in the git tree diff
-
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
public abstract GitFileDiffCacheImpl.DiffAlgorithm diffAlgorithm()
-
whitespace
public abstract DiffPreferencesInfo.Whitespace whitespace()
-
useTimeout
public abstract boolean useTimeout()
Employ a timeout on the git computation while formatting the file header.
-
weight
public int weight()
-
builder
public static GitFileDiffCacheKey.Builder builder()
-
-