summaryrefslogtreecommitdiff
path: root/src/attr.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-16 00:46:30 +0100
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-16 13:49:03 +0100
commit91a300b7f0a6b9e6ecaa940268dc9a907e8f7691 (patch)
tree5f128c097fbff905f1c4fca5dd42fa854011eeb9 /src/attr.c
parentc3bbbcf5670657ff567e2eb5e8e62e53343bf36f (diff)
downloadlibgit2-91a300b7f0a6b9e6ecaa940268dc9a907e8f7691.tar.gz
attr: rename constants and macros for consistencyethomson/attr
Our enumeration values are not generally suffixed with `T`. Further, our enumeration names are generally more descriptive.
Diffstat (limited to 'src/attr.c')
-rw-r--r--src/attr.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/attr.c b/src/attr.c
index c6867e161..bd8e415cc 100644
--- a/src/attr.c
+++ b/src/attr.c
@@ -19,18 +19,18 @@ const char *git_attr__true = "[internal]__TRUE__";
const char *git_attr__false = "[internal]__FALSE__";
const char *git_attr__unset = "[internal]__UNSET__";
-git_attr_t git_attr_value(const char *attr)
+git_attr_value_t git_attr_value(const char *attr)
{
if (attr == NULL || attr == git_attr__unset)
- return GIT_ATTR_UNSPECIFIED_T;
+ return GIT_ATTR_VALUE_UNSPECIFIED;
if (attr == git_attr__true)
- return GIT_ATTR_TRUE_T;
+ return GIT_ATTR_VALUE_TRUE;
if (attr == git_attr__false)
- return GIT_ATTR_FALSE_T;
+ return GIT_ATTR_VALUE_FALSE;
- return GIT_ATTR_VALUE_T;
+ return GIT_ATTR_VALUE_STRING;
}
static int collect_attr_files(