public class PullRequestEffectiveDiff extends Object
When a pull request is created, the branches to merge from and to are chosen. This represents the pull request's
actual diff. However, it is up to the underlying SCM to determine how the branch diff is constructed by choosing
the commits that will be used to produce the effective diff, which is the diff that will be streamed by the
command factory
.
How the commits are selected is left entirely to the SCM. Some possibilities are:
command factory
implementors are encouraged
to provide documentation as to how the effective diff is chosen for that implementation to aid plugin developers in
understanding the diff that will be generated.Constructor and Description |
---|
PullRequestEffectiveDiff(String untilId,
String sinceId) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getSinceId()
Retrieves the commit which will serve as the ancestor revision when generating a pull request's diff.
|
String |
getUntilId()
Retrieves the commit which will serve as the tip revision when generating a pull request's diff.
|
int |
hashCode() |
@Nonnull public String getSinceId()
"until"
commit, as
arbitrary diffs between unrelated commits may produce useless, noisy diffs.@Nonnull public String getUntilId()
"since"
commit up to and including this commit.Copyright © 2019 Atlassian. All rights reserved.