Git.Object

The parsed representation of a raw Git object.

Members

Aliases

hash
deprecated alias hash = oid
Undocumented in source.

Functions

parseBlob
immutable(ubyte)[] parseBlob()

"Parse" this raw Git object as a blob.

parseCommit
ParsedCommit parseCommit()

Parse this raw Git object as a commit.

parseTree
TreeEntry[] parseTree()

Parse this raw Git object as a tree.

Static functions

createBlob
Object createBlob(immutable(ubyte)[] data)

Create a blob object (i.e., a file) from raw bytes.

createCommit
Object createCommit(ParsedCommit commit)

Format a Git commit into a raw Git object.

createTree
Object createTree(TreeEntry[] entries)

Format a Git tree into a raw Git object. Tree entries must be sorted (TreeEntry implements an appropriate opCmp).

Structs

ParsedCommit
struct ParsedCommit

Represents a parsed Git commit object.

TreeEntry
struct TreeEntry

Represents an entry in a parsed Git commit object.

Variables

data
immutable(ubyte)[] data;

The raw data contained in this object.

oid
OID oid;

Object identifier. Will be OID.init initially.

type
string type;

Object type, as in git-hash-object's -t parameter.

Meta