Namespaces

Types in GitSharp

Type AbstractObject

Namespace GitSharp

AbstractObject is the base class for the classes Blob, Commit, Tag and Tree. It proviedes test methods to identify its specialized type (i.e. IsBlob, IsCommit, etc). AbstractObject also defines comparison operators so you can safely compare git objects by using the operators == or != which internally efficiently compare the objects hashes.

Properties

Public properties

string Hash get;

The git object's SHA1 hash. This is the long hash, See ShortHash for the abbreviated version.

bool IsBlob get;

True if this object is a Blob (or Leaf which is a subclass of Blob).

bool IsCommit get;

True if this object is a Commit.

bool IsTag get;

True if this object is a Tag.

bool IsTree get;

True if the internal object is a Tree.

Repository Repository get;

The repository where this git object belongs to.

string ShortHash get;

The git object's abbreviated SHA1 hash.