public class RemoteSetUrlCommand extends GitCommand<RemoteConfig>
call() method to finally execute the command.| Modifier and Type | Class and Description |
|---|---|
static class |
RemoteSetUrlCommand.UriType
The available URI types for the remote.
|
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
remoteName |
private URIish |
remoteUri |
private RemoteSetUrlCommand.UriType |
type |
repo| Modifier | Constructor and Description |
|---|---|
protected |
RemoteSetUrlCommand(Repository repo)
Constructor for RemoteSetUrlCommand.
|
| Modifier and Type | Method and Description |
|---|---|
RemoteConfig |
call() |
void |
setName(java.lang.String name)
Deprecated.
use
setRemoteName(java.lang.String) instead |
void |
setPush(boolean push)
Deprecated.
|
RemoteSetUrlCommand |
setRemoteName(java.lang.String remoteName)
The name of the remote to change the URL for.
|
RemoteSetUrlCommand |
setRemoteUri(URIish remoteUri)
The new URL for the remote.
|
void |
setUri(URIish uri)
Deprecated.
use
setRemoteUri(org.eclipse.jgit.transport.URIish) instead |
RemoteSetUrlCommand |
setUriType(RemoteSetUrlCommand.UriType type)
Whether to change the push URL of the remote instead of the fetch URL.
|
checkCallable, getRepository, setCallableprivate java.lang.String remoteName
private URIish remoteUri
private RemoteSetUrlCommand.UriType type
protected RemoteSetUrlCommand(Repository repo)
Constructor for RemoteSetUrlCommand.
repo - the Repository@Deprecated public void setName(java.lang.String name)
setRemoteName(java.lang.String) insteadname - a remote namepublic RemoteSetUrlCommand setRemoteName(java.lang.String remoteName)
remoteName - a remote remoteNamethis@Deprecated public void setUri(URIish uri)
setRemoteUri(org.eclipse.jgit.transport.URIish) insteaduri - an URL for the remotepublic RemoteSetUrlCommand setRemoteUri(URIish remoteUri)
remoteUri - an URL for the remotethis@Deprecated public void setPush(boolean push)
setUriType(org.eclipse.jgit.api.RemoteSetUrlCommand.UriType) insteadpush - true to set the push url, false to
set the fetch urlpublic RemoteSetUrlCommand setUriType(RemoteSetUrlCommand.UriType type)
type - the UriType value to setthispublic 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.
call in interface java.util.concurrent.Callable<RemoteConfig>call in class GitCommand<RemoteConfig>GitAPIException