public final class GitRemoteConfig extends Object
[remote]
area of a gitconfig file.
Contains and provides information about a remote git repository, its push and fetch URIs
and fetch and push reference specifications. See the help pages for git config for more information.Constructor and Description |
---|
GitRemoteConfig(String remoteName,
List<String> uris,
List<String> pushUris,
List<String> fetchSpecs,
List<String> pushSpecs) |
Modifier and Type | Method and Description |
---|---|
List<String> |
getFetchRefSpecs() |
List<String> |
getPushRefSpecs() |
List<String> |
getPushUris() |
String |
getRemoteName() |
List<String> |
getUris() |
public GitRemoteConfig(String remoteName, List<String> uris, List<String> pushUris, List<String> fetchSpecs, List<String> pushSpecs)
remoteName
- alias for the remote repositoryuris
- list of URIs the remote repository is represented bypushUris
- list of URIs that should be used when pushing to the repositoryfetchSpecs
- list of fetch reference specifications that come in question when fetching from the repositorypushSpecs
- list of push reference specifications that come in question when pushing to the repositorypublic String getRemoteName()