Package com.google.gerrit.server.patch
Interface PatchListCache
-
- All Known Implementing Classes:
PatchListCacheImpl
public interface PatchListCache
Provides a cached list ofPatchListEntry
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description PatchList
get(Change change, PatchSet patchSet)
Deprecated.useDiffOperations
instead.PatchList
get(PatchListKey key, Project.NameKey project)
Deprecated.useDiffOperations
instead.DiffSummary
getDiffSummary(DiffSummaryKey key, Project.NameKey project)
IntraLineDiff
getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
org.eclipse.jgit.lib.ObjectId
getOldId(Change change, PatchSet patchSet, Integer parentNum)
Deprecated.useDiffOperations
instead.
-
-
-
Method Detail
-
get
@Deprecated PatchList get(PatchListKey key, Project.NameKey project) throws PatchListNotAvailableException
Deprecated.useDiffOperations
instead.Returns the patch list - list of modified files - between two commits.- Parameters:
key
- identifies the old / new commits.project
- name key identifying a specific git project (repository).- Returns:
- patch list containing the modified files between two commits.
- Throws:
PatchListNotAvailableException
-
get
@Deprecated PatchList get(Change change, PatchSet patchSet) throws PatchListNotAvailableException
Deprecated.useDiffOperations
instead.Returns the patch list - list of modified files - between two commits.- Parameters:
change
- entity containing all change data.patchSet
- single revision of aChange
.- Returns:
- patch list containing the modified files between two commits.
- Throws:
PatchListNotAvailableException
-
getOldId
@Deprecated org.eclipse.jgit.lib.ObjectId getOldId(Change change, PatchSet patchSet, Integer parentNum) throws PatchListNotAvailableException
Deprecated.useDiffOperations
instead.Returns the patch list - list of modified files - between two commits.- Parameters:
change
- entity containing all change data.patchSet
- single revision of aChange
.parentNum
- 1-based parent number when new commit used in comparison is a merge commit.- Returns:
- patch list containing the modified files between two commits.
- Throws:
PatchListNotAvailableException
-
getIntraLineDiff
IntraLineDiff getIntraLineDiff(IntraLineDiffKey key, IntraLineDiffArgs args)
-
getDiffSummary
DiffSummary getDiffSummary(DiffSummaryKey key, Project.NameKey project) throws PatchListNotAvailableException
- Throws:
PatchListNotAvailableException
-
-