libgit2

oid

Version:
Object IDs

Objects

OID Shortener object

Structs

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

Macros

SHA1 is currently libgit2's default oid type

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

Size (in bytes) of a hex formatted sha1 oid

The binary representation of the null sha1 object ID

The string representation of the null sha1 object ID

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

Size (in bytes) of a hex formatted sha256 oid

The binary representation of the null sha256 object ID

The string representation of the null sha256 object ID

Maximum possible object ID size in raw format

Maximum possible object ID size in hex format

Minimum length (in number of hex characters, i

Enums

The type of object id

Functions

Parse a hex formatted object id into a git_oid

Parse a hex formatted NUL-terminated string into a git_oid

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

Copy an already raw oid into a git_oid structure

Format a git_oid into a hex string

Format a git_oid into a partial hex string

Format a git_oid into a loose-object path string

Format a git_oid into a statically allocated c-string

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

Copy an oid from one structure to another

Compare two oid structures

Compare two oid structures for equality

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

Check if an oid equals an hex formatted object id

Compare an oid to an hex formatted object id

Check is an oid is all zeros

Create a new OID shortener

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

Free an OID shortener instance