libgit2

git_oid_tostr_s

Version:

Format a git_oid into a statically allocated c-string.

The c-string is owned by the library and should not be freed by the user. If libgit2 is built with thread support, the string will be stored in TLS (i.e. one buffer per thread) to allow for concurrent calls of the function.

Signature

char *git_oid_tostr_s(const git_oid *oid);

Parameters

Returns

char *

the c-string

Versions