Interface GitModifiedFilesCache
-
- All Known Implementing Classes:
GitModifiedFilesCacheImpl
public interface GitModifiedFilesCache
A cache interface for identifying the list of Git modified files between 2 different git trees. This cache does not read the actual file contents, nor does it include the edits (modified regions) of the file.The other
ModifiedFilesCache
is similar to this cache, and includes other extra Gerrit logic that we need to add with the list of modified files.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.common.collect.ImmutableList<ModifiedFile>
get(GitModifiedFilesCacheKey key)
Computes the list of ofModifiedFile
s between the 2 git trees.
-
-
-
Method Detail
-
get
com.google.common.collect.ImmutableList<ModifiedFile> get(GitModifiedFilesCacheKey key) throws DiffNotAvailableException
Computes the list of ofModifiedFile
s between the 2 git trees.- Parameters:
key
- used to identify two git trees and contains other attributes to control the diff calculation.- Returns:
- the list of
ModifiedFile
s between the 2 git trees identified by the key. - Throws:
DiffNotAvailableException
- trees cannot be read or file contents cannot be read.
-
-