Commit 7198d3452c8c90042b4f33687052d545bf12080c

Edward Thomson 2019-11-28T15:12:05

Merge pull request #5310 from lberk/compat-git-attr-t Add compat typdef for git_attr_t

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff --git a/include/git2/deprecated.h b/include/git2/deprecated.h
index ac1ad1a..7eb21dc 100644
--- a/include/git2/deprecated.h
+++ b/include/git2/deprecated.h
@@ -7,6 +7,7 @@
 #ifndef INCLUDE_git_deprecated_h__
 #define INCLUDE_git_deprecated_h__
 
+#include "attr.h"
 #include "config.h"
 #include "common.h"
 #include "blame.h"
@@ -66,6 +67,8 @@ GIT_BEGIN_DECL
 #define GIT_ATTR_FALSE(attr) GIT_ATTR_IS_FALSE(attr)
 #define GIT_ATTR_UNSPECIFIED(attr) GIT_ATTR_IS_UNSPECIFIED(attr)
 
+typedef git_attr_value_t git_attr_t;
+
 /**@}*/
 
 /** @name Deprecated Blob Functions