Class PreviewDiffRequest

java.lang.Object
com.linecorp.centraldogma.client.PreviewDiffRequest

public final class PreviewDiffRequest
extends Object
Prepares to send a CentralDogma.getPreviewDiffs(String, String, Revision, Iterable) request to the Central Dogma repository.
  • Method Details

    • get

      public CompletableFuture<List<Change<?>>> get()
      Retrieves the preview diffs, which are hypothetical diffs generated from the Revision.HEAD and the latest Revision if the Changes were successfully pushed to the specified repository. This operation is useful for pre-checking if the Changes will be applied as expected without any conflicts.
      Returns:
      the diffs which would be committed if the Changes were pushed successfully
    • get

      public CompletableFuture<List<Change<?>>> get​(Revision baseRevision)
      Retrieves the preview diffs, which are hypothetical diffs generated from the specified Revision and the latest Revision if the Changes were successfully pushed to the specified repository. This operation is useful for pre-checking if the Changes will be applied as expected without any conflicts.
      Returns:
      the diffs which would be committed if the Changes were pushed successfully