libgit2.oid

Members

Enums

GIT_OID_SHA1
anonymousenum GIT_OID_SHA1
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_OID_SHA1
anonymousenum GIT_OID_SHA1
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
git_oid_t
enum git_oid_t

The type of object id.

git_oid_t
enum git_oid_t

The type of object id.

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, .git_oid_t type)

Copy an already raw oid into a git_oid structure.

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, .git_oid_t type)

Parse a hex formatted object id into a git_oid.

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, .git_oid_t type)

Parse N characters of 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, .git_oid_t type)

Parse a hex formatted null-terminated string 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_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_DEFAULT
enum GIT_OID_DEFAULT;

SHA1 is currently libgit2's default oid type.

GIT_OID_MAX_HEXSIZE
enum GIT_OID_MAX_HEXSIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_OID_MAX_HEXSIZE
enum GIT_OID_MAX_HEXSIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_OID_MAX_SIZE
enum GIT_OID_MAX_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_OID_MAX_SIZE
enum GIT_OID_MAX_SIZE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_OID_SHA1_HEXSIZE
enum GIT_OID_SHA1_HEXSIZE;

Size (in bytes) of a hex formatted sha1 oid

GIT_OID_SHA1_HEXZERO
enum GIT_OID_SHA1_HEXZERO;

The string representation of the null sha1 object ID.

GIT_OID_SHA1_SIZE
enum GIT_OID_SHA1_SIZE;

Size (in bytes) of a raw/binary sha1 oid

GIT_OID_SHA256_HEXSIZE
enum GIT_OID_SHA256_HEXSIZE;

Size (in bytes) of a hex formatted sha256 oid

GIT_OID_SHA256_HEXZERO
enum GIT_OID_SHA256_HEXZERO;

The string representation of the null sha256 object ID.

GIT_OID_SHA256_SIZE
enum GIT_OID_SHA256_SIZE;

Size (in bytes) of a raw/binary sha256 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

License

GPL-2.0(Linking Exception)