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

Function foreign_patch_diff

test/test_apply_diff.py:71–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

69
70@pytest.fixture
71def foreign_patch_diff() -> Diff:
72 patch_contents = """diff --git a/this_file_does_not_exist b/this_file_does_not_exist
73index 7f129fd..af431f2 100644
74--- a/this_file_does_not_exist
75+++ b/this_file_does_not_exist
76@@ -1 +1 @@
77-a contents 2
78+a contents
79"""
80 return pygit2.Diff.parse_diff(patch_contents)
81
82
83def test_apply_type_error(testrepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…