org.eclipse.jgit.api
Class PullCommand

java.lang.Object
  extended by org.eclipse.jgit.api.GitCommand<T>
      extended by org.eclipse.jgit.api.TransportCommand<PullCommand,PullResult>
          extended by org.eclipse.jgit.api.PullCommand
All Implemented Interfaces:
Callable<PullResult>

public class PullCommand
extends TransportCommand<PullCommand,PullResult>

The Pull command

See Also:
Git documentation about Pull

Field Summary
 
Fields inherited from class org.eclipse.jgit.api.TransportCommand
credentialsProvider, timeout, transportConfigCallback
 
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
 
Constructor Summary
protected PullCommand(Repository repo)
           
 
Method Summary
 PullResult call()
          Executes the Pull command with all the options and parameters collected by the setter methods (e.g.
 PullCommand setProgressMonitor(ProgressMonitor monitor)
           
 
Methods inherited from class org.eclipse.jgit.api.TransportCommand
configure, configure, self, setCredentialsProvider, setTimeout, setTransportConfigCallback
 
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PullCommand

protected PullCommand(Repository repo)
Parameters:
repo -
Method Detail

setProgressMonitor

public PullCommand setProgressMonitor(ProgressMonitor monitor)
Parameters:
monitor - a progress monitor
Returns:
this instance

call

public PullResult call()
                throws GitAPIException,
                       WrongRepositoryStateException,
                       InvalidConfigurationException,
                       DetachedHeadException,
                       InvalidRemoteException,
                       CanceledException,
                       RefNotFoundException,
                       NoHeadException,
                       TransportException
Executes the 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.

Specified by:
call in interface Callable<PullResult>
Specified by:
call in class GitCommand<PullResult>
Returns:
the result of the pull
Throws:
WrongRepositoryStateException
InvalidConfigurationException
DetachedHeadException
InvalidRemoteException
CanceledException
RefNotFoundException
NoHeadException
TransportException
GitAPIException


Copyright © 2012. All Rights Reserved.