Package org.eclipse.jgit.api
Class RemoteListCommand
- java.lang.Object
-
- org.eclipse.jgit.api.GitCommand<List<RemoteConfig>>
-
- org.eclipse.jgit.api.RemoteListCommand
-
- All Implemented Interfaces:
Callable<List<RemoteConfig>>
public class RemoteListCommand extends GitCommand<List<RemoteConfig>>
Used to obtain the list of remotes. This class has setters for all supported options and arguments of this command and acall()
method to finally execute the command.- Since:
- 4.2
- See Also:
- Git documentation about Remote
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteListCommand(Repository repo)
Constructor for RemoteListCommand.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<RemoteConfig>
call()
-
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
-
-
-
Constructor Detail
-
RemoteListCommand
protected RemoteListCommand(Repository repo)
Constructor for RemoteListCommand.
- Parameters:
repo
- theRepository
-
-
Method Detail
-
call
public List<RemoteConfig> call() throws GitAPIException
Execute the command
Executes the
remote
command with all the options and parameters collected by the setter methods of this class.- Specified by:
call
in interfaceCallable<List<RemoteConfig>>
- Specified by:
call
in classGitCommand<List<RemoteConfig>>
- Throws:
GitAPIException
-
-