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.
Show file Open project: jagregory/GitSharp Class Usage Examples

Public Methods

Method 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

Method 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 method

public AddFetchRefSpec ( RefSpec s ) : bool
s RefSpec
return bool

AddPushRefSpec() public method

public AddPushRefSpec ( RefSpec s ) : bool
s RefSpec
return bool

AddPushURI() public method

public AddPushURI ( URIish toAdd ) : bool
toAdd URIish
return bool

AddURI() public method

public AddURI ( URIish toAdd ) : bool
toAdd URIish
return bool

GetAllRemoteConfigs() public static method

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. ///
return List

RemoteConfig() public method

public RemoteConfig ( Config rc, string remoteName ) : System
rc Config
remoteName string
return System

RemoveFetchRefSpec() public method

public RemoveFetchRefSpec ( RefSpec s ) : bool
s RefSpec
return bool

RemovePushRefSpec() public method

public RemovePushRefSpec ( RefSpec s ) : bool
s RefSpec
return bool

RemovePushURI() public method

public RemovePushURI ( URIish toRemove ) : bool
toRemove URIish
return bool

RemoveURI() public method

public RemoveURI ( URIish toRemove ) : bool
toRemove URIish
return bool

SetFetchRefSpecs() public method

public SetFetchRefSpecs ( List specs ) : void
specs List
return void

SetPushRefSpecs() public method

public SetPushRefSpecs ( List specs ) : void
specs List
return void

SetTagOpt() public method

public SetTagOpt ( TagOpt option ) : void
option TagOpt
return void

Update() public method

public Update ( Config rc ) : void
rc Config
return void