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

Method clear

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

Source from the content-addressed store, hash-verified

126 check_error(err, io=True)
127
128 def clear(self) -> None:
129 err = C.git_index_clear(self._index)
130 check_error(err)
131
132 def read_tree(self, tree: Oid | Tree | str) -> None:
133 """Replace the contents of the Index with those of the given tree,

Callers 3

clearFunction · 0.80
test_writeFunction · 0.80
readintoMethod · 0.80

Calls 1

check_errorFunction · 0.85

Tested by 2

clearFunction · 0.64
test_writeFunction · 0.64