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

Method state_cleanup

pygit2/repository.py:692–697  ·  view source on GitHub ↗

Remove all the metadata associated with an ongoing command like merge, revert, cherry-pick, etc. For example: MERGE_HEAD, MERGE_MSG, etc.

(self)

Source from the content-addressed store, hash-verified

690 return cstate # type: ignore[return-value]
691
692 def state_cleanup(self) -> None:
693 """Remove all the metadata associated with an ongoing command like
694 merge, revert, cherry-pick, etc. For example: MERGE_HEAD, MERGE_MSG,
695 etc.
696 """
697 C.git_repository_state_cleanup(self._repo)
698
699 #
700 # blame

Callers 3

test_merge_mergeheadsFunction · 0.80
test_merge_messageFunction · 0.80

Calls

no outgoing calls

Tested by 3

test_merge_mergeheadsFunction · 0.64
test_merge_messageFunction · 0.64