Commit aea049b63a97fecf7e4731158f427ce996cd96a8

Lukas Berk 2019-11-27T20:05:32

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.

diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index ac1ad1a..c2ddb5d 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