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

Function Tree_iter

src/tree.c:118–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118PyObject *
119Tree_iter(Tree *self)
120{
121 TreeIter *iter;
122
123 if (Object__load((Object*)self) == NULL) { return NULL; } // Lazy load
124
125 iter = PyObject_New(TreeIter, &TreeIterType);
126 if (iter) {
127 Py_INCREF(self);
128 iter->owner = self;
129 iter->i = 0;
130 }
131 return (PyObject*)iter;
132}
133
134PyObject*
135tree_getentry_by_index(const git_tree *tree, Repository *repo, PyObject *py_index)

Callers

nothing calls this directly

Calls 1

Object__loadFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…