Package com.linecorp.centraldogma.client
Class HistoryRequest
java.lang.Object
com.linecorp.centraldogma.client.HistoryRequest
Prepares to send a
CentralDogma.getHistory(String, String, Revision, Revision, PathPattern, int)
request to the Central Dogma repository.-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the history of the files matched by the given path pattern between twoRevision
s.maxCommits
(int maxCommits) Sets the maximum number of commits to retrieve.
-
Method Details
-
maxCommits
Sets the maximum number of commits to retrieve.0
is used by default which means to retreive all commits. The number of retrieved commits can't be greater than 1000. -
get
Retrieves the history of the files matched by the given path pattern between twoRevision
s.Note that this method does not retrieve the diffs but only metadata about the changes.
- Returns:
- a
List
that contains theCommit
s of the files matched by the givenPathPattern
in the specified repository
-