libgit2

git_object_type_is_valid

Version:

Determine if the given git_object_t is a valid object type.

Signature

int git_object_type_is_valid(git_object_t type);

Parameters

In
type

object type to test.

Returns

int

1 if the type represents a valid loose object type, 0 otherwise

Versions