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
Afficher le fichier Open project: stschake/GitSharp Class Usage Examples

Méthodes publiques

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

Méthode Description
Ref ( Repository repo, GitSharp.Core.Ref @ref ) : System

Method Details

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsValidName() public static méthode

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
Résultat bool

Ref() public méthode

public Ref ( Repository repo, string name ) : System
repo Repository
name string
Résultat System

ToString() public méthode

public ToString ( ) : string
Résultat string

Update() public méthode

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

Update() public méthode

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

Update() public static méthode

public static Update ( string name, AbstractObject reference ) : void
name string
reference AbstractObject
Résultat void

operator() public static méthode

public static operator ( ) : bool
Résultat bool