diff options
author | Lukas Berk <lberk@redhat.com> | 2019-11-27 20:05:32 -0500 |
---|---|---|
committer | Lukas Berk <lberk@redhat.com> | 2019-11-27 21:24:16 -0500 |
commit | aea049b63a97fecf7e4731158f427ce996cd96a8 (patch) | |
tree | c040826de58d1abba320dd3bc47dcb1aa44d6275 /include | |
parent | 7805122bc749197907a68b89b0863a3992fcedee (diff) | |
download | libgit2-aea049b63a97fecf7e4731158f427ce996cd96a8.tar.gz |
Add compat typdef for git_attr_t
Some libraries haven't updated to git_attr_value_t and break. Adding
the comapt typedef as suggested.
Diffstat (limited to 'include')
-rw-r--r-- | include/git2/deprecated.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h index ac1ad1a63..c2ddb5d01 100644 --- a/include/git2/deprecated.h +++ b/include/git2/deprecated.h @@ -68,6 +68,21 @@ GIT_BEGIN_DECL /**@}*/ +/** @name Deprecated Attribute type + * + * 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. + */ +/**@{*/ + +typedef git_attr_value_t git_attr_t; + +/**@}*/ + /** @name Deprecated Blob Functions * * These functions are retained for backward compatibility. The newer |