libgit2

GIT_ATTR_HAS_VALUE(attr)

Version:

GIT_ATTR_HAS_VALUE checks if an attribute is set to a value (as opposied to TRUE, FALSE or UNSPECIFIED). This would be the case if for a file with something like: *.txt eol=lf Given this, looking up "eol" for onefile.txt will give back the string "lf" and GIT_ATTR_SET_TO_VALUE(attr) will return true.

Signature

#define GIT_ATTR_HAS_VALUE(attr) ((attr) && (attr) != git_attr__unset && (attr) != git_attr__true && (attr) != git_attr__false)

Versions