MCPcopy Create free account
hub / github.com/libgit2/pygit2 / wrap_repository

Function wrap_repository

src/repository.c:86–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84PyTypeObject RepositoryType;
85
86PyObject *
87wrap_repository(git_repository *c_repo)
88{
89 Repository *py_repo = PyObject_GC_New(Repository, &RepositoryType);
90
91 if (py_repo) {
92 py_repo->repo = c_repo;
93 py_repo->config = NULL;
94 py_repo->index = NULL;
95 py_repo->owned = 1;
96 }
97
98 return (PyObject *)py_repo;
99}
100
101int
102Repository_init(Repository *self, PyObject *args, PyObject *kwds)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…