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 twoRevisions.maxCommits(int maxCommits) Sets the maximum number of commits to retrieve.
-
Method Details
-
maxCommits
Sets the maximum number of commits to retrieve.0is 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 twoRevisions.Note that this method does not retrieve the diffs but only metadata about the changes.
- Returns:
- a
Listthat contains theCommits of the files matched by the givenPathPatternin the specified repository
-