libgit2

git_oid_allocfmt

Version:

Format a git_oid into a newly allocated c-string.

Signature

char *git_oid_allocfmt(const git_oid *id);

Parameters

In
id

the oid structure to format

Returns

char *

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

Versions