Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9ffaa0b

Browse files
committed
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.
1 parent 7805122 commit 9ffaa0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/git2/attr.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ typedef enum {
8686
GIT_ATTR_VALUE_STRING, /**< This attribute has a value */
8787
} git_attr_value_t;
8888

89+
/**
90+
* Added for compatibility purposes
91+
*/
92+
typedef git_attr_value_t git_attr_t;
93+
8994
/**
9095
* Return the value type for a given attribute.
9196
*

0 commit comments

Comments
 (0)