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

Function Tree_len

src/tree.c:56–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56Py_ssize_t
57Tree_len(Tree *self)
58{
59 if (Object__load((Object*)self) == NULL) { return -1; } // Lazy load
60 return (Py_ssize_t)git_tree_entrycount(self->tree);
61}
62
63int
64Tree_contains(Tree *self, PyObject *py_name)

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…