libgit2

git_object_type2string

Version:

Convert an object type to its 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

In
type

object type to convert.

Returns

const char *

the corresponding string representation.

Versions