Class PreviewDiffRequest
java.lang.Object
com.linecorp.centraldogma.client.PreviewDiffRequest
Prepares to send a
CentralDogma.getPreviewDiffs(String, String, Revision, Iterable) request to the
Central Dogma repository.-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<List<Change<?>>> get()Retrieves the preview diffs, which are hypothetical diffs generated from theRevision.HEADand the latestRevisionif theChanges were successfully pushed to the specified repository.CompletableFuture<List<Change<?>>>
-
Method Details
-
get
Retrieves the preview diffs, which are hypothetical diffs generated from theRevision.HEADand the latestRevisionif theChanges were successfully pushed to the specified repository. This operation is useful for pre-checking if theChanges will be applied as expected without any conflicts.- Returns:
- the diffs which would be committed if the
Changes were pushed successfully
-
get
Retrieves the preview diffs, which are hypothetical diffs generated from the specifiedRevisionand the latestRevisionif theChanges were successfully pushed to the specified repository. This operation is useful for pre-checking if theChanges will be applied as expected without any conflicts.- Returns:
- the diffs which would be committed if the
Changes were pushed successfully
-