public abstract class OutgoingCommitsProvider<Repo extends Repository,Source extends PushSource,Target extends PushTarget>
extends java.lang.Object
Constructor and Description |
---|
OutgoingCommitsProvider() |
Modifier and Type | Method and Description |
---|---|
abstract OutgoingResult |
getOutgoingCommits(Repo repository,
PushSpec<Source,Target> pushSpec,
boolean initial)
Collect either outgoing commits or errors for the given repository and
PushSpec . |
public abstract OutgoingResult getOutgoingCommits(Repo repository, PushSpec<Source,Target> pushSpec, boolean initial)
PushSpec
.initial
- true for the first attempt to load commits, which happens when the push dialog just appears on the screen.
If later the user modifies the push target, commits are reloaded, and initial
is false.
initial
is true, no user interaction is allowed
(to avoid suddenly throwing dialogs into user's face).
E.g. if authentication is needed to collect outgoing changes, then the method should silently show the corresponding
request in the error field of the OutgoingResult.