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

Function treeentry_to_object

src/tree.c:45–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43
44
45PyObject *
46treeentry_to_object(const git_tree_entry *entry, Repository *repo)
47{
48 if (repo == NULL) {
49 PyErr_SetString(PyExc_ValueError, "expected repository");
50 return NULL;
51 }
52
53 return wrap_object(NULL, repo, entry);
54}
55
56Py_ssize_t
57Tree_len(Tree *self)

Callers 4

tree_getentry_by_indexFunction · 0.85
tree_getentry_by_pathFunction · 0.85
TreeIter_iternextFunction · 0.85
TreeBuilder_getFunction · 0.85

Calls 1

wrap_objectFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…