public interface CompareService
ID or by branch or
tag name. For SCMs which have a concept of a short name, such as Git with its shortened SHA-1s and unqualified ref
names, the fully-qualified version should be used wherever possible to avoid ambiguity.| Modifier and Type | Method and Description |
|---|---|
void |
streamChanges(CompareRequest request,
ChangeCallback callback)
|
void |
streamCommits(CompareRequest request,
CommitCallback callback)
|
void |
streamDiff(CompareDiffRequest request,
DiffContentCallback callback)
|
void streamChanges(@Nonnull CompareRequest request, @Nonnull ChangeCallback callback)
from ref but not on the
to ref.
Note: Change information is not paged. Instead, it is bounded by a hard cap specified by the
property page.max.changes. See the configuration
documentation for more information.
request - describes the refs to comparecallback - a callback for receiving the changesvoid streamCommits(@Nonnull CompareRequest request, @Nonnull CommitCallback callback)
request - describes the refs to comparecallback - a callback for receiving the commitsvoid streamDiff(@Nonnull CompareDiffRequest request, @Nonnull DiffContentCallback callback)
from ref but not on the
to ref.
Note: Diff output is not paged. Instead, it is bounded by hard caps specified by the following properties:
page.max.diff.lines, specifying the max number of diff lines to outputpage.max.source.length, specifying the max length of each diff linerequest - describes the refs to comparecallback - a callback for receiving the diff outputCopyright © 2019 Atlassian. All rights reserved.