Package com.linecorp.centraldogma.client
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.HEAD
and the latestRevision
if theChange
s were successfully pushed to the specified repository.CompletableFuture
<List<Change<?>>>
-
Method Details
-
get
Retrieves the preview diffs, which are hypothetical diffs generated from theRevision.HEAD
and the latestRevision
if theChange
s were successfully pushed to the specified repository. This operation is useful for pre-checking if theChange
s will be applied as expected without any conflicts.- Returns:
- the diffs which would be committed if the
Change
s were pushed successfully
-
get
Retrieves the preview diffs, which are hypothetical diffs generated from the specifiedRevision
and the latestRevision
if theChange
s were successfully pushed to the specified repository. This operation is useful for pre-checking if theChange
s will be applied as expected without any conflicts.- Returns:
- the diffs which would be committed if the
Change
s were pushed successfully
-