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

Method diff

pygit2/repository.py:564–572  ·  view source on GitHub ↗
(
        self,
        a: None | str | bytes | Commit | Oid | Reference = None,
        b: None | str | bytes | Commit | Oid | Reference = None,
        cached: bool = False,
        flags: DiffOption = DiffOption.NORMAL,
        context_lines: int = 3,
        interhunk_lines: int = 0,
    )

Source from the content-addressed store, hash-verified

562
563 @overload
564 def diff(
565 self,
566 a: None | str | bytes | Commit | Oid | Reference = None,
567 b: None | str | bytes | Commit | Oid | Reference = None,
568 cached: bool = False,
569 flags: DiffOption = DiffOption.NORMAL,
570 context_lines: int = 3,
571 interhunk_lines: int = 0,
572 ) -> Diff: ...
573 @overload
574 def diff(
575 self,

Callers 15

test_binary_diffFunction · 0.80
test_diff_blobFunction · 0.80
test_diff_blob_createFunction · 0.80
test_diff_empty_indexFunction · 0.80
test_workdir_to_treeFunction · 0.80
test_index_to_workdirFunction · 0.80
test_diff_treeFunction · 0.80
test_diff_revparseFunction · 0.80
test_diff_blobsFunction · 0.80
test_reset_softFunction · 0.80

Calls 3

diff_to_treeMethod · 0.80
diff_to_workdirMethod · 0.80

Tested by 15

test_binary_diffFunction · 0.64
test_diff_blobFunction · 0.64
test_diff_blob_createFunction · 0.64
test_diff_empty_indexFunction · 0.64
test_workdir_to_treeFunction · 0.64
test_index_to_workdirFunction · 0.64
test_diff_treeFunction · 0.64
test_diff_revparseFunction · 0.64
test_diff_blobsFunction · 0.64
test_reset_softFunction · 0.64