C# Класс GitSharp.Core.Transport.RemoteConfig

A remembered remote repository, including URLs and RefSpecs. A remote configuration remembers one or more URLs for a frequently accessed remote repository as well as zero or more fetch and push specifications describing how refs should be transferred between this repository and the remote repository.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddFetchRefSpec ( RefSpec s ) : bool
AddPushRefSpec ( RefSpec s ) : bool
AddPushURI ( URIish toAdd ) : bool
AddURI ( URIish toAdd ) : bool
GetAllRemoteConfigs ( RepositoryConfig rc ) : List

Parse all remote blocks in an existing configuration file, looking for remotes configuration.

RemoteConfig ( Config rc, string remoteName ) : System
RemoveFetchRefSpec ( RefSpec s ) : bool
RemovePushRefSpec ( RefSpec s ) : bool
RemovePushURI ( URIish toRemove ) : bool
RemoveURI ( URIish toRemove ) : bool
SetFetchRefSpecs ( List specs ) : void
SetPushRefSpecs ( List specs ) : void
SetTagOpt ( TagOpt option ) : void
Update ( Config rc ) : void

Приватные методы

Метод Описание
Set ( Config rc, string key, bool currentValue, bool defaultValue ) : void
Set ( Config rc, string key, int currentValue, IEquatable defaultValue ) : void
Set ( Config rc, string key, string currentValue, IEquatable defaultValue ) : void
Unset ( Config rc, string key ) : void

Описание методов

AddFetchRefSpec() публичный Метод

public AddFetchRefSpec ( RefSpec s ) : bool
s RefSpec
Результат bool

AddPushRefSpec() публичный Метод

public AddPushRefSpec ( RefSpec s ) : bool
s RefSpec
Результат bool

AddPushURI() публичный Метод

public AddPushURI ( URIish toAdd ) : bool
toAdd URIish
Результат bool

AddURI() публичный Метод

public AddURI ( URIish toAdd ) : bool
toAdd URIish
Результат bool

GetAllRemoteConfigs() публичный статический Метод

Parse all remote blocks in an existing configuration file, looking for remotes configuration.
public static GetAllRemoteConfigs ( RepositoryConfig rc ) : List
rc RepositoryConfig /// The existing configuration to get the remote settings from. /// The configuration must already be loaded into memory. ///
Результат List

RemoteConfig() публичный Метод

public RemoteConfig ( Config rc, string remoteName ) : System
rc Config
remoteName string
Результат System

RemoveFetchRefSpec() публичный Метод

public RemoveFetchRefSpec ( RefSpec s ) : bool
s RefSpec
Результат bool

RemovePushRefSpec() публичный Метод

public RemovePushRefSpec ( RefSpec s ) : bool
s RefSpec
Результат bool

RemovePushURI() публичный Метод

public RemovePushURI ( URIish toRemove ) : bool
toRemove URIish
Результат bool

RemoveURI() публичный Метод

public RemoveURI ( URIish toRemove ) : bool
toRemove URIish
Результат bool

SetFetchRefSpecs() публичный Метод

public SetFetchRefSpecs ( List specs ) : void
specs List
Результат void

SetPushRefSpecs() публичный Метод

public SetPushRefSpecs ( List specs ) : void
specs List
Результат void

SetTagOpt() публичный Метод

public SetTagOpt ( TagOpt option ) : void
option TagOpt
Результат void

Update() публичный Метод

public Update ( Config rc ) : void
rc Config
Результат void