libgit2

git_attr_value

Version:

Return the value type for a given attribute.

This can be either TRUE, FALSE, UNSPECIFIED (if the attribute was not set at all), or VALUE, if the attribute was set to an actual string.

If the attribute has a VALUE string, it can be accessed normally as a NULL-terminated C string.

Signature

git_attr_value_t git_attr_value(const char *attr);

Parameters

const char *
In
attr

The attribute

Returns

the value type for the attribute

Versions