GitOid

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

Constructors

this
this(char[] hex)

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

this
this(inout(git_oid) oid)
Undocumented in source.

Members

Functions

_get_oid
inout(git_oid) _get_oid()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
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

Properties

bytes
inout(ubyte[20]) bytes [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Meta