(progress: StashApplyProgress, data: StashApplyCallbacks)
| 836 | |
| 837 | @libgit2_callback |
| 838 | def _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 |
nothing calls this directly
no test coverage detected
searching dependent graphs…