libgit2_d.oid

Undocumented in source.

Members

Functions

git_oid_cmp
int git_oid_cmp(const(.git_oid)* a, const(.git_oid)* b)

Compare two oid structures.

git_oid_cpy
int git_oid_cpy(.git_oid* out_, const(.git_oid)* src)

Copy an oid from one structure to another.

git_oid_equal
int git_oid_equal(const(.git_oid)* a, const(.git_oid)* b)

Compare two oid structures for equality

git_oid_fmt
int git_oid_fmt(char* out_, const(.git_oid)* id)

Format a git_oid into a hex string.

git_oid_fromraw
int git_oid_fromraw(.git_oid* out_, const(ubyte)* raw)

Copy an already raw oid into a git_oid structure.

git_oid_fromstr
int git_oid_fromstr(.git_oid* out_, const(char)* str)

Parse a hex formatted object id into a git_oid.

git_oid_fromstrn
int git_oid_fromstrn(.git_oid* out_, const(char)* str, size_t length)

Parse N characters of a hex formatted object id into a git_oid.

git_oid_fromstrp
int git_oid_fromstrp(.git_oid* out_, const(char)* str)

Parse a hex formatted null-terminated string into a git_oid.

git_oid_is_zero
int git_oid_is_zero(const(.git_oid)* id)

Check is an oid is all zeros.

git_oid_ncmp
int git_oid_ncmp(const(.git_oid)* a, const(.git_oid)* b, size_t len)

Compare the first 'len' hexadecimal characters (packets of 4 bits) of two oid structures.

git_oid_nfmt
int git_oid_nfmt(char* out_, size_t n, const(.git_oid)* id)

Format a git_oid into a partial hex string.

git_oid_pathfmt
int git_oid_pathfmt(char* out_, const(.git_oid)* id)

Format a git_oid into a loose-object path string.

git_oid_shorten_add
int git_oid_shorten_add(.git_oid_shorten* os, const(char)* text_id)

Add a new OID to set of shortened OIDs and calculate the minimal length to uniquely identify all the OIDs in the set.

git_oid_shorten_free
void git_oid_shorten_free(.git_oid_shorten* os)

Free an OID shortener instance

git_oid_shorten_new
.git_oid_shorten* git_oid_shorten_new(size_t min_length)

Create a new OID shortener.

git_oid_strcmp
int git_oid_strcmp(const(.git_oid)* id, const(char)* str)

Compare an oid to an hex formatted object id.

git_oid_streq
int git_oid_streq(const(.git_oid)* id, const(char)* str)

Check if an oid equals an hex formatted object id.

git_oid_tostr
char* git_oid_tostr(char* out_, size_t n, const(.git_oid)* id)

Format a git_oid into a buffer as a hex format c-string.

git_oid_tostr_s
char* git_oid_tostr_s(const(.git_oid)* oid)

Format a git_oid into a statically allocated c-string.

Manifest constants

GIT_OID_HEXSZ
enum GIT_OID_HEXSZ;

Size (in bytes) of a hex formatted oid

GIT_OID_MINPREFIXLEN
enum GIT_OID_MINPREFIXLEN;

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

GIT_OID_RAWSZ
enum GIT_OID_RAWSZ;

Size (in bytes) of a raw/binary oid

Structs

git_oid
struct git_oid

Unique identity of any object (commit, tree, blob, tag).

git_oid_shorten
struct git_oid_shorten

OID Shortener object

Meta