GitOid

The unique ID of any Git object, whether it's a commit, tree, blob, tag, etc.

Constructors

this
this(in char[] hex)

Parse a full or partial hex-formatted object ID and create a GitOid object.

Members

Functions

toHex
string toHex()

Convert this GitOid into a hex string.

toString
string toString()

Return the string representation of this Oid, in hex form.

Manifest constants

BinarySize
enum BinarySize;

Size (in bytes) of a raw/binary oid

MaxHexSize
enum MaxHexSize;

Size (in bytes) of a hex formatted oid

MinHexSize
enum MinHexSize;

Minimum length (in number of hex characters, * i.e. packets of 4 bits) of an oid prefix

Meta