libgit2

oid

Version:
Git object id routines

Objects

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

OID Shortener object

Structs

Macros

Size (in bytes) of a raw/binary oid

Size (in bytes) of a hex formatted oid

Minimum length (in number of hex characters, i

Functions

Parse a hex formatted object id 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 loose-object path string

Format a git_oid into a newly 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 the first 'len' hexadecimal characters (packets of 4 bits) of two oid structures

Check if an oid equals an hex formatted object id

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