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

Function wrap_diff_line

src/diff.c:162–175  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162PyObject *
163wrap_diff_line(const git_diff_line *line, DiffHunk *hunk)
164{
165 DiffLine *py_line;
166
167 py_line = PyObject_New(DiffLine, &DiffLineType);
168 if (py_line) {
169 Py_INCREF(hunk);
170 py_line->hunk = hunk;
171 py_line->line = line;
172 }
173
174 return (PyObject *) py_line;
175}
176
177static void
178DiffFile_dealloc(DiffFile *self)

Callers 1

DiffHunk_lines__get__Function · 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…