libgit2

git_oid_allocfmt

Version:

Format a git_oid into a newly allocated c-string.

Signature

char *git_oid_allocfmt(const git_oid *oid);

Parameters

In
oid

the oid structure to format

Returns

char *

the c-string; NULL if memory is exhausted. Caller must deallocate the string with free().

Versions