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.
|
repo
Modifier | Constructor and Description |
---|---|
protected |
RemoteSetUrlCommand(Repository repo)
Constructor for RemoteSetUrlCommand.
|
Modifier and Type | Method and Description |
---|---|
RemoteConfig |
call() |
void |
setName(String name)
Deprecated.
use
setRemoteName(java.lang.String) instead |
void |
setPush(boolean push)
Deprecated.
|
RemoteSetUrlCommand |
setRemoteName(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, setCallable
protected RemoteSetUrlCommand(Repository repo)
Constructor for RemoteSetUrlCommand.
repo
- the Repository
@Deprecated public void setName(String name)
setRemoteName(java.lang.String)
insteadname
- a remote namepublic RemoteSetUrlCommand setRemoteName(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 setthis
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.
call
in interface Callable<RemoteConfig>
call
in class GitCommand<RemoteConfig>
GitAPIException
Copyright © 2020 Eclipse JGit Project. All rights reserved.