Package org.eclipse.jgit.api
Class RemoteListCommand
- All Implemented Interfaces:
Callable<List<RemoteConfig>>
Used to obtain the list of remotes.
This class has setters for all supported options and arguments of this
command and a
call()
method to finally execute the command.- Since:
- 4.2
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
RemoteListCommand
(Repository repo) Constructor for RemoteListCommand. -
Method Summary
Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Constructor Details
-
RemoteListCommand
Constructor for RemoteListCommand.
- Parameters:
repo
- theRepository
-
-
Method Details
-
call
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
-