Commits

Anonymous committed a2c5389

Export GIT_OBJ_* constants.

Change-Id: I3933d2a0c700f0ada626655eb5deb3e841887c04

Comments (0)

Files changed (1)

 
     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);
 }