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

Function wrap_diff

src/diff.c:54–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52extern PyObject *FileModeEnum;
53
54PyObject *
55wrap_diff(git_diff *diff, Repository *repo)
56{
57 Diff *py_diff;
58
59 py_diff = PyObject_New(Diff, &DiffType);
60 if (py_diff) {
61 Py_XINCREF(repo);
62 py_diff->repo = repo;
63 py_diff->diff = diff;
64 }
65
66 return (PyObject*) py_diff;
67}
68
69PyObject *
70wrap_diff_file(const git_diff_file *file)

Callers 5

Tree_diff_to_workdirFunction · 0.85
Tree_diff_to_indexFunction · 0.85
Tree_diff_to_treeFunction · 0.85
Diff_from_cFunction · 0.85
Diff_parse_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…