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

Method prune

pygit2/remotes.py:308–312  ·  view source on GitHub ↗

Perform a prune against this remote.

(self, callbacks: RemoteCallbacks | None = None)

Source from the content-addressed store, hash-verified

306 ]
307
308 def prune(self, callbacks: RemoteCallbacks | None = None) -> None:
309 """Perform a prune against this remote."""
310 with git_remote_callbacks(callbacks) as payload:
311 err = C.git_remote_prune(self._remote, payload.remote_callbacks)
312 payload.check_error(err)
313
314 @property
315 def refspec_count(self) -> int:

Callers 3

test_remote_pruneFunction · 0.80
test_worktreeFunction · 0.80
test_worktree_custom_refFunction · 0.80

Calls 2

check_errorMethod · 0.80
git_remote_callbacksFunction · 0.70

Tested by 3

test_remote_pruneFunction · 0.64
test_worktreeFunction · 0.64
test_worktree_custom_refFunction · 0.64