libgit2

GIT_ATTR_IS_TRUE(attr)

Version:

GIT_ATTR_TRUE checks if an attribute is set on. In core git parlance, this the value for "Set" attributes. For example, if the attribute file contains: *.c foo Then for file xyz.c looking up attribute "foo" gives a value for which GIT_ATTR_TRUE(value) is true.

Signature

#define GIT_ATTR_IS_TRUE(attr) (git_attr_value(attr) == GIT_ATTR_VALUE_TRUE)

Versions