Skip to content

Commit 66673cd

Browse files
committed
Fix build, change git_attr_t to git_attr_value_t
When using libgit2 built from source, the build breaks due to a change from git_attr_t to git_attr_value_t. Update our headerfile accordingly.
1 parent d2b0ced commit 66673cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pygit2/decl/attr.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ typedef enum {
88
GIT_ATTR_TRUE_T,
99
GIT_ATTR_FALSE_T,
1010
GIT_ATTR_VALUE_T,
11-
} git_attr_t;
11+
} git_attr_value_t;
1212

1313
int git_attr_get(
1414
const char **value_out,
@@ -17,4 +17,4 @@ int git_attr_get(
1717
const char *path,
1818
const char *name);
1919

20-
git_attr_t git_attr_value(const char *attr);
20+
git_attr_value_t git_attr_value(const char *attr);

0 commit comments

Comments
 (0)