C# Class 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.
Afficher le fichier Open project: jagregory/GitSharp Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

AddFetchRefSpec() public méthode

public AddFetchRefSpec ( RefSpec s ) : bool
s RefSpec
Résultat bool

AddPushRefSpec() public méthode

public AddPushRefSpec ( RefSpec s ) : bool
s RefSpec
Résultat bool

AddPushURI() public méthode

public AddPushURI ( URIish toAdd ) : bool
toAdd URIish
Résultat bool

AddURI() public méthode

public AddURI ( URIish toAdd ) : bool
toAdd URIish
Résultat bool

GetAllRemoteConfigs() public static méthode

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. ///
Résultat List

RemoteConfig() public méthode

public RemoteConfig ( Config rc, string remoteName ) : System
rc Config
remoteName string
Résultat System

RemoveFetchRefSpec() public méthode

public RemoveFetchRefSpec ( RefSpec s ) : bool
s RefSpec
Résultat bool

RemovePushRefSpec() public méthode

public RemovePushRefSpec ( RefSpec s ) : bool
s RefSpec
Résultat bool

RemovePushURI() public méthode

public RemovePushURI ( URIish toRemove ) : bool
toRemove URIish
Résultat bool

RemoveURI() public méthode

public RemoveURI ( URIish toRemove ) : bool
toRemove URIish
Résultat bool

SetFetchRefSpecs() public méthode

public SetFetchRefSpecs ( List specs ) : void
specs List
Résultat void

SetPushRefSpecs() public méthode

public SetPushRefSpecs ( List specs ) : void
specs List
Résultat void

SetTagOpt() public méthode

public SetTagOpt ( TagOpt option ) : void
option TagOpt
Résultat void

Update() public méthode

public Update ( Config rc ) : void
rc Config
Résultat void