Interface GitModifiedFilesCache
-
- All Known Implementing Classes:
GitModifiedFilesCacheImpl
public interface GitModifiedFilesCacheA 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
ModifiedFilesCacheis 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 ofModifiedFiles between the 2 git trees.
-
-
-
Method Detail
-
get
com.google.common.collect.ImmutableList<ModifiedFile> get(GitModifiedFilesCacheKey key) throws DiffNotAvailableException
Computes the list of ofModifiedFiles 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
ModifiedFiles between the 2 git trees identified by the key. - Throws:
DiffNotAvailableException- trees cannot be read or file contents cannot be read.
-
-