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 /include/git2/deprecated.h | |
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 'include/git2/deprecated.h')
-rw-r--r-- | include/git2/deprecated.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index d769dff3f..7191aa4d3 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -45,6 +45,28 @@ */ GIT_BEGIN_DECL +/** @name Deprecated Attribute Constants + * + * These enumeration values are retained for backward compatibility. + * The newer versions of these functions should be preferred in all + * new code. + * + * There is no plan to remove these backward compatibility values at + * this time. + */ +/**@{*/ + +#define GIT_ATTR_UNSPECIFIED_T GIT_ATTR_VALUE_UNSPECIFIED +#define GIT_ATTR_TRUE_T GIT_ATTR_VALUE_TRUE +#define GIT_ATTR_FALSE_T GIT_ATTR_VALUE_FALSE +#define GIT_ATTR_VALUE_T GIT_ATTR_VALUE_STRING + +#define GIT_ATTR_TRUE(attr) GIT_ATTR_IS_TRUE(attr) +#define GIT_ATTR_FALSE(attr) GIT_ATTR_IS_FALSE(attr) +#define GIT_ATTR_UNSPECIFIED(attr) GIT_ATTR_IS_UNSPECIFIED(attr) + +/**@}*/ + /** @name Deprecated Blob Functions * * These functions are retained for backward compatibility. The newer |