git_oid_tostr_s

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.

extern (C) nothrow @nogc
char*
git_oid_tostr_s
(
const(.git_oid)* oid
)

Parameters

oid const(.git_oid)*

The oid structure to format

Return Value

Type: char*

the c-string

Meta