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

Function Patch_line_stats__get__

src/patch.c:85–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 "Get line counts of each type in a patch (context, additions, deletions).");
84
85PyObject *
86Patch_line_stats__get__(Patch *self)
87{
88 size_t context, additions, deletions;
89 int err;
90
91 assert(self->patch);
92 err = git_patch_line_stats(&context, &additions, &deletions, self->patch);
93 if (err < 0)
94 return Error_set(err);
95
96 return Py_BuildValue("III", context, additions, deletions);
97}
98
99PyDoc_STRVAR(Patch_create_from__doc__,
100 "Create a patch from blobs, buffers, or a blob and a buffer");

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…