Export GIT_OBJ_* constants.
Change-Id: I3933d2a0c700f0ada626655eb5deb3e841887c04
This commit is contained in:
parent
994e64d134
commit
a2c5389465
6
pygit2.c
6
pygit2.c
@ -552,4 +552,10 @@ initpygit2(void)
|
||||
|
||||
Py_INCREF(&CommitType);
|
||||
PyModule_AddObject(m, "Commit", (PyObject *)&CommitType);
|
||||
|
||||
PyModule_AddIntConstant(m, "GIT_OBJ_ANY", GIT_OBJ_ANY);
|
||||
PyModule_AddIntConstant(m, "GIT_OBJ_COMMIT", GIT_OBJ_COMMIT);
|
||||
PyModule_AddIntConstant(m, "GIT_OBJ_TREE", GIT_OBJ_TREE);
|
||||
PyModule_AddIntConstant(m, "GIT_OBJ_BLOB", GIT_OBJ_BLOB);
|
||||
PyModule_AddIntConstant(m, "GIT_OBJ_TAG", GIT_OBJ_TAG);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user