public class RemoteAddCommand extends GitCommand<RemoteConfig>
call()
method to finally execute the command.repo
Modifier | Constructor and Description |
---|---|
protected |
RemoteAddCommand(Repository repo)
Constructor for RemoteAddCommand.
|
Modifier and Type | Method and Description |
---|---|
RemoteConfig |
call() |
RemoteAddCommand |
setName(String name)
The name of the remote to add.
|
RemoteAddCommand |
setUri(URIish uri)
The URL of the repository for the new remote.
|
checkCallable, getRepository, setCallable
protected RemoteAddCommand(Repository repo)
repo
- the Repository
public RemoteAddCommand setName(String name)
name
- a remote namepublic RemoteAddCommand setUri(URIish uri)
uri
- an URL for the remotepublic RemoteConfig call() throws GitAPIException
Execute the command
Executes the remote add
command with all the options and
parameters collected by the setter methods of this class.
call
in interface Callable<RemoteConfig>
call
in class GitCommand<RemoteConfig>
GitAPIException
Copyright © 2019 Eclipse JGit Project. All rights reserved.