C# Class GitCommands.GitRef

Inheritance: IGitRef
Mostrar archivo Open project: pmiossec/gitextensions Class Usage Examples

Public Properties

Property Type Description
RefsBisectPrefix string
RefsHeadsPrefix string
RefsRemotesPrefix string
RefsTagsPrefix string
TagDereferenceSuffix string

Public Methods

Method Description
CreateBranchRef ( GitModule module, string guid, string name ) : GitRef
GetAmbiguousRefNames ( IEnumerable refs ) : ISet
GetMergeWith ( ISettingsValueGetter configFile ) : string

This method is a faster than the property above. The property reads the config file every time it is accessed. This method accepts a configfile what makes it faster when loading the revisiongraph.

GetTrackingRemote ( ISettingsValueGetter configFile ) : string

This method is a faster than the property above. The property reads the config file every time it is accessed. This method accepts a config file what makes it faster when loading the revision graph.

GitRef ( IGitModule module, string guid, string completeName ) : System
GitRef ( IGitModule module, string guid, string completeName, string remote ) : System
NoHead ( GitModule module ) : GitRef
RemoteSettingName ( string branch ) : string

Gets the setting name for a branch's remote.

ToString ( ) : string

Private Methods

Method Description
ParseName ( ) : void

Method Details

CreateBranchRef() public static method

public static CreateBranchRef ( GitModule module, string guid, string name ) : GitRef
module GitModule
guid string
name string
return GitRef

GetAmbiguousRefNames() public static method

public static GetAmbiguousRefNames ( IEnumerable refs ) : ISet
refs IEnumerable
return ISet

GetMergeWith() public method

This method is a faster than the property above. The property reads the config file every time it is accessed. This method accepts a configfile what makes it faster when loading the revisiongraph.
public GetMergeWith ( ISettingsValueGetter configFile ) : string
configFile ISettingsValueGetter
return string

GetTrackingRemote() public method

This method is a faster than the property above. The property reads the config file every time it is accessed. This method accepts a config file what makes it faster when loading the revision graph.
public GetTrackingRemote ( ISettingsValueGetter configFile ) : string
configFile ISettingsValueGetter
return string

GitRef() public method

public GitRef ( IGitModule module, string guid, string completeName ) : System
module IGitModule
guid string
completeName string
return System

GitRef() public method

public GitRef ( IGitModule module, string guid, string completeName, string remote ) : System
module IGitModule
guid string
completeName string
remote string
return System

NoHead() public static method

public static NoHead ( GitModule module ) : GitRef
module GitModule
return GitRef

RemoteSettingName() public static method

Gets the setting name for a branch's remote.
public static RemoteSettingName ( string branch ) : string
branch string
return string

ToString() public method

public ToString ( ) : string
return string

Property Details

RefsBisectPrefix public_oe static_oe property

"refs/bisect/"
public static string RefsBisectPrefix
return string

RefsHeadsPrefix public_oe static_oe property

"refs/heads/"
public static string RefsHeadsPrefix
return string

RefsRemotesPrefix public_oe static_oe property

"refs/remotes/"
public static string RefsRemotesPrefix
return string

RefsTagsPrefix public_oe static_oe property

"refs/tags/"
public static string RefsTagsPrefix
return string

TagDereferenceSuffix public_oe static_oe property

"^{}"
public static string TagDereferenceSuffix
return string