OID Shortener object
Unique identity of any object (commit, tree, blob, tag)
Size (in bytes) of a raw/binary oid
Size (in bytes) of a hex formatted oid
Parse 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
The resulting string is "aa/...", where "aa" is the first two hex digitis of the oid and "..." is the remaining 38 digits.
Format a gid_oid into a newly allocated c-string
Format a git_oid into a buffer as a hex format c-string
If the buffer is smaller than GIT_OID_HEXSZ+1, then the resulting oid c-string will be truncated to n-1 characters. If there are any input parameter errors (out == NULL, n == 0, oid == NULL), then a pointer to an empty string is returned, so that the return value can always be printed.
Copy an oid from one structure to another
Compare two oid structures
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