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

Method __init__

test/test_repository.py:115–120  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

113
114 class MyCheckoutCallbacks(pygit2.CheckoutCallbacks):
115 def __init__(self) -> None:
116 super().__init__()
117 self.conflicting_paths: set[str] = set()
118 self.updated_paths: set[str] = set()
119 self.completed_steps = -1
120 self.total_steps = -1
121
122 def checkout_notify_flags(self) -> CheckoutNotify:
123 return CheckoutNotify.CONFLICT | CheckoutNotify.UPDATED

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected