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

Method checkout_notify

test/test_repository.py:125–136  ·  view source on GitHub ↗
(
            self,
            why: CheckoutNotify,
            path: str,
            baseline: Optional[DiffFile],
            target: Optional[DiffFile],
            workdir: Optional[DiffFile],
        )

Source from the content-addressed store, hash-verified

123 return CheckoutNotify.CONFLICT | CheckoutNotify.UPDATED
124
125 def checkout_notify(
126 self,
127 why: CheckoutNotify,
128 path: str,
129 baseline: Optional[DiffFile],
130 target: Optional[DiffFile],
131 workdir: Optional[DiffFile],
132 ) -> None:
133 if why == CheckoutNotify.CONFLICT:
134 self.conflicting_paths.add(path)
135 elif why == CheckoutNotify.UPDATED:
136 self.updated_paths.add(path)
137
138 def checkout_progress(
139 self, path: str, completed_steps: int, total_steps: int

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected