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

Function _stash_apply_progress_cb

pygit2/callbacks.py:838–850  ·  view source on GitHub ↗
(progress: StashApplyProgress, data: StashApplyCallbacks)

Source from the content-addressed store, hash-verified

836
837@libgit2_callback
838def _stash_apply_progress_cb(progress: StashApplyProgress, data: StashApplyCallbacks):
839 try:
840 data.stash_apply_progress(progress)
841 except Passthrough:
842 # Unlike most other operations with optional callbacks, stash apply
843 # doesn't support the GIT_PASSTHROUGH return code, so we must bypass
844 # libgit2_callback's error handling and return 0 explicitly here.
845 pass
846
847 # If the user's callback has raised any other exception type,
848 # it's caught by the libgit2_callback decorator by now.
849 # So, return success code to libgit2.
850 return 0
851
852
853@contextmanager

Callers

nothing calls this directly

Calls 1

stash_apply_progressMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…