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

Method __len__

pygit2/index.py:78–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

76 C.git_index_free(self._index)
77
78 def __len__(self) -> int:
79 return C.git_index_entrycount(self._index)
80
81 def __contains__(self, path) -> bool:
82 err = C.git_index_find(ffi.NULL, self._index, to_bytes(path))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected