libgit2_d.object

Undocumented in source.

Members

Functions

git_object_dup
int git_object_dup(libgit2_d.types.git_object** dest, libgit2_d.types.git_object* source)

Create an in-memory copy of a Git object. The copy must be explicitly free'd or it will leak.

git_object_free
void git_object_free(libgit2_d.types.git_object* object)

Close an open object

git_object_id
const(libgit2_d.oid.git_oid)* git_object_id(const(libgit2_d.types.git_object)* obj)

Get the id (SHA1) of a repository object

git_object_lookup
int git_object_lookup(libgit2_d.types.git_object** object, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id, libgit2_d.types.git_object_t type)

Lookup a reference to one of the objects in a repository.

git_object_lookup_bypath
int git_object_lookup_bypath(libgit2_d.types.git_object** out_, const(libgit2_d.types.git_object)* treeish, const(char)* path, libgit2_d.types.git_object_t type)

Lookup an object that represents a tree entry.

git_object_lookup_prefix
int git_object_lookup_prefix(libgit2_d.types.git_object** object_out, libgit2_d.types.git_repository* repo, const(libgit2_d.oid.git_oid)* id, size_t len, libgit2_d.types.git_object_t type)

Lookup a reference to one of the objects in a repository, given a prefix of its identifier (short id).

git_object_owner
libgit2_d.types.git_repository* git_object_owner(const(libgit2_d.types.git_object)* obj)

Get the repository that owns this object

git_object_peel
int git_object_peel(libgit2_d.types.git_object** peeled, const(libgit2_d.types.git_object)* object, libgit2_d.types.git_object_t target_type)

Recursively peel an object until an object of the specified type is met.

git_object_short_id
int git_object_short_id(libgit2_d.buffer.git_buf* out_, const(libgit2_d.types.git_object)* obj)

Get a short abbreviated OID string for the object

git_object_string2type
libgit2_d.types.git_object_t git_object_string2type(const(char)* str)

Convert a string object type representation to it's libgit2_d.types.git_object_t.

git_object_type
libgit2_d.types.git_object_t git_object_type(const(libgit2_d.types.git_object)* obj)

Get the object type of an object

git_object_type2string
const(char)* git_object_type2string(libgit2_d.types.git_object_t type)

Convert an object type to its string representation.

git_object_typeisloose
int git_object_typeisloose(libgit2_d.types.git_object_t type)

Determine if the given libgit2_d.types.git_object_t is a valid loose object type.

Manifest constants

GIT_OBJECT_SIZE_MAX
enum GIT_OBJECT_SIZE_MAX;

@file git2/object.h @brief Git revision object management routines @defgroup git_object Git revision object management routines @ingroup Git @{

Meta