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

Method enable_unsaved_index_safety

pygit2/settings.py:271–273  ·  view source on GitHub ↗

Enable or disable unsaved index safety checks

(self, value: bool = True)

Source from the content-addressed store, hash-verified

269 option(Option.ENABLE_STRICT_HASH_VERIFICATION, value)
270
271 def enable_unsaved_index_safety(self, value: bool = True) -> None:
272 """Enable or disable unsaved index safety checks"""
273 option(Option.ENABLE_UNSAVED_INDEX_SAFETY, value)
274
275 def enable_http_expect_continue(self, value: bool = True) -> None:
276 """Enable or disable HTTP Expect/Continue for large pushes"""

Callers

nothing calls this directly

Calls 1

optionFunction · 0.90

Tested by

no test coverage detected