Namespaces

Types in GitSharp

Type Ref

Namespace GitSharp

Interfaces IReferenceObject

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.

Methods

Properties

Public instance methods

void Update(Ref reference)

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

The ref this ref shall reference.

void Update(AbstractObject reference)

Updates this ref by forwarding it to the given object.
Parameters
AbstractObject reference

The ref this object shall reference.

Public static methods

bool IsValidName(string refName)

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.
Return
bool

Returns true if refName is a valid ref name.

void Update(string name, AbstractObject reference)

Public properties

bool IsBranch get;

string Name get; set;

AbstractObject Target get;

Resolve the symbolic reference and return the object that it is currently pointing at. Target is not cached in order to match the behavior of a real git ref.