Package org.eclipse.jgit.api
Class RemoteRemoveCommand
- All Implemented Interfaces:
Callable<RemoteConfig>
Used to remove an existing remote.
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
FieldsFields inherited from class org.eclipse.jgit.api.GitCommand
repo
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Constructor for RemoteRemoveCommand. -
Method Summary
Modifier and TypeMethodDescriptioncall()
void
Deprecated.setRemoteName
(String remoteName) The name of the remote to remove.Methods inherited from class org.eclipse.jgit.api.GitCommand
checkCallable, getRepository, setCallable
-
Field Details
-
remoteName
-
-
Constructor Details
-
RemoteRemoveCommand
Constructor for RemoteRemoveCommand.
- Parameters:
repo
- theRepository
-
-
Method Details
-
setName
Deprecated.usesetRemoteName(java.lang.String)
insteadThe name of the remote to remove.- Parameters:
name
- a remote name
-
setRemoteName
The name of the remote to remove.- Parameters:
remoteName
- a remote name- Returns:
this
- Since:
- 5.3
-
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<RemoteConfig>
- Specified by:
call
in classGitCommand<RemoteConfig>
- Throws:
GitAPIException
-
setRemoteName(java.lang.String)
instead