From a2c5389465d55253e21382b4b1e865deec9f10aa Mon Sep 17 00:00:00 2001 From: Dave Borowitz Date: Sat, 30 Oct 2010 15:45:36 -0700 Subject: [PATCH] Export GIT_OBJ_* constants. Change-Id: I3933d2a0c700f0ada626655eb5deb3e841887c04 --- pygit2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pygit2.c b/pygit2.c index b2733b3..6d083a7 100644 --- a/pygit2.c +++ b/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); }