diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-16 00:46:30 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2019-06-16 13:49:03 +0100 |
commit | 91a300b7f0a6b9e6ecaa940268dc9a907e8f7691 (patch) | |
tree | 5f128c097fbff905f1c4fca5dd42fa854011eeb9 /src/filter.c | |
parent | c3bbbcf5670657ff567e2eb5e8e62e53343bf36f (diff) | |
download | libgit2-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/filter.c')
-rw-r--r-- | src/filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/filter.c b/src/filter.c index 96c27fdf8..34e2dfa17 100644 --- a/src/filter.c +++ b/src/filter.c @@ -445,7 +445,7 @@ static int filter_list_check_attributes( for (i = 0; !error && i < fdef->nattrs; ++i) { const char *want = fdef->attrs[fdef->nattrs + i]; - git_attr_t want_type, found_type; + git_attr_value_t want_type, found_type; if (!want) continue; @@ -455,7 +455,7 @@ static int filter_list_check_attributes( if (want_type != found_type) error = GIT_ENOTFOUND; - else if (want_type == GIT_ATTR_VALUE_T && + else if (want_type == GIT_ATTR_VALUE_STRING && strcmp(want, strs[i]) && strcmp(want, "*")) error = GIT_ENOTFOUND; |