public class PullCommand extends TransportCommand<PullCommand,PullResult>
credentialsProvider, timeout, transportConfigCallback
repo
Modifier | Constructor and Description |
---|---|
protected |
PullCommand(Repository repo) |
Modifier and Type | Method and Description |
---|---|
PullResult |
call()
Executes the
Pull command with all the options and parameters
collected by the setter methods (e.g. |
PullCommand |
setProgressMonitor(ProgressMonitor monitor) |
PullCommand |
setRebase(boolean useRebase)
Set if rebase should be used after fetching.
|
configure, configure, self, setCredentialsProvider, setTimeout, setTransportConfigCallback
checkCallable, getRepository, setCallable
protected PullCommand(Repository repo)
repo
- public PullCommand setProgressMonitor(ProgressMonitor monitor)
monitor
- a progress monitorpublic PullCommand setRebase(boolean useRebase)
useRebase
- this
public PullResult call() throws GitAPIException, WrongRepositoryStateException, InvalidConfigurationException, DetachedHeadException, InvalidRemoteException, CanceledException, RefNotFoundException, NoHeadException, TransportException
Pull
command with all the options and parameters
collected by the setter methods (e.g.
setProgressMonitor(ProgressMonitor)
) of this class. Each
instance of this class should only be used for one invocation of the
command. Don't call this method twice on an instance.call
in interface Callable<PullResult>
call
in class GitCommand<PullResult>
WrongRepositoryStateException
InvalidConfigurationException
DetachedHeadException
InvalidRemoteException
CanceledException
RefNotFoundException
NoHeadException
TransportException
GitAPIException
Copyright © 2013. All rights reserved.