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

Method write

pygit2/index.py:123–126  ·  view source on GitHub ↗

Write the contents of the Index to disk.

(self)

Source from the content-addressed store, hash-verified

121 check_error(err, io=True)
122
123 def write(self) -> None:
124 """Write the contents of the Index to disk."""
125 err = C.git_index_write(self._index)
126 check_error(err, io=True)
127
128 def clear(self) -> None:
129 err = C.git_index_clear(self._index)

Callers 3

filter__write_nextFunction · 0.45
RefdbBackend_writeFunction · 0.45

Calls 1

check_errorFunction · 0.85

Tested by

no test coverage detected