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

Function clear

test/test_index.py:125–129  ·  view source on GitHub ↗
(repo: Repository)

Source from the content-addressed store, hash-verified

123
124
125def clear(repo: Repository) -> None:
126 index = repo.index
127 assert len(index) == 2
128 index.clear()
129 assert len(index) == 0
130
131
132def test_write(testrepo: Repository) -> None:

Callers 2

test_add_allFunction · 0.85
test_add_all_aspathFunction · 0.85

Calls 1

clearMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…