C# Class GitSharp.Ref

Ref is a named symbolic reference that is a pointing to a specific git object. It is not resolved until you explicitly retrieve the link target. The Target is not cached.
Inheritance: IReferenceObject
Datei anzeigen Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
Equals ( object obj ) : bool
GetHashCode ( ) : int
IsValidName ( string refName ) : bool

Check validity of a ref name. It must not contain a character that has a special meaning in a Git object reference expression. Some other dangerous characters are also excluded.

Ref ( Repository repo, string name ) : System
ToString ( ) : string
Update ( AbstractObject reference ) : void

Updates this ref by forwarding it to the given object.

Update ( Ref reference ) : void

Updates this ref by linking it to the given ref's target.

Update ( string name, AbstractObject reference ) : void
operator ( ) : bool

Private Methods

Method Description
Ref ( Repository repo, GitSharp.Core.Ref @ref ) : System

Method Details

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

IsValidName() public static method

Check validity of a ref name. It must not contain a character that has a special meaning in a Git object reference expression. Some other dangerous characters are also excluded.
public static IsValidName ( string refName ) : bool
refName string
return bool

Ref() public method

public Ref ( Repository repo, string name ) : System
repo Repository
name string
return System

ToString() public method

public ToString ( ) : string
return string

Update() public method

Updates this ref by forwarding it to the given object.
public Update ( AbstractObject reference ) : void
reference AbstractObject The ref this object shall reference.
return void

Update() public method

Updates this ref by linking it to the given ref's target.
public Update ( Ref reference ) : void
reference Ref The ref this ref shall reference.
return void

Update() public static method

public static Update ( string name, AbstractObject reference ) : void
name string
reference AbstractObject
return void

operator() public static method

public static operator ( ) : bool
return bool