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/diff_driver.c | |
parent | c3bbbcf5670657ff567e2eb5e8e62e53343bf36f (diff) | |
download | libgit2-ethomson/attr.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/diff_driver.c')
-rw-r--r-- | src/diff_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/diff_driver.c b/src/diff_driver.c index 740b5c9a3..6919e4e61 100644 --- a/src/diff_driver.c +++ b/src/diff_driver.c @@ -371,11 +371,11 @@ int git_diff_driver_lookup( attrsession, 0, path, 1, attrs)) < 0) /* return error below */; - else if (GIT_ATTR_UNSPECIFIED(values[0])) + else if (GIT_ATTR_IS_UNSPECIFIED(values[0])) /* just use the auto value */; - else if (GIT_ATTR_FALSE(values[0])) + else if (GIT_ATTR_IS_FALSE(values[0])) *out = &global_drivers[DIFF_DRIVER_BINARY]; - else if (GIT_ATTR_TRUE(values[0])) + else if (GIT_ATTR_IS_TRUE(values[0])) *out = &global_drivers[DIFF_DRIVER_TEXT]; /* otherwise look for driver information in config and build driver */ |