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