libgit2

git_object_type2string

Version:

Convert an object type to it's string representation.

The result is a pointer to a string in static memory and should not be free()'ed.

Signature

const char *git_object_type2string(git_otype type);

Parameters

git_otype
In
type

object type to convert.

Returns

const char *

the corresponding string representation.

Versions