| com.atlassian.stash.compare.CompareService |
Compares two commits. Commits can be specified by 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.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
in 3.7 for removal in 5.0. All things "changeset" are being renamed to "commit", the more common term
for the data they represent. Due to the significant number of touchpoints, the deprecated classes and
interfaces will be left in for an entire major release cycle, rather than being removed in 4.0.
Callers should use
streamCommits(CompareRequest, CommitCallback) instead.
| |||||||||||
Streams changes contained on the from ref but not on the
to ref.
page.max.changes. See the documentation for
Stash config properties for more information.| request | describes the refs to compare |
|---|---|
| callback | a callback for receiving the changes |
This method is deprecated.
in 3.7 for removal in 5.0. All things "changeset" are being renamed to "commit", the more common term
for the data they represent. Due to the significant number of touchpoints, the deprecated classes and
interfaces will be left in for an entire major release cycle, rather than being removed in 4.0.
Callers should use streamCommits(CompareRequest, CommitCallback) instead.
| request | describes the refs to compare |
|---|---|
| callback | a callback for receiving the changesets |
Streams the diff of the changes contained on the from ref but not on the
to ref.
page.max.diff.lines, specifying the max number of diff lines to outputpage.max.source.length, specifying the max length of each diff line| request | describes the refs to compare |
|---|---|
| callback | a callback for receiving the diff output |