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

Function Diff_merge

src/diff.c:1005–1019  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1003 "Merge one diff into another.");
1004
1005PyObject *
1006Diff_merge(Diff *self, PyObject *args)
1007{
1008 Diff *py_diff;
1009 int err;
1010
1011 if (!PyArg_ParseTuple(args, "O!", &DiffType, &py_diff))
1012 return NULL;
1013
1014 err = git_diff_merge(self->diff, py_diff->diff);
1015 if (err < 0)
1016 return Error_set(err);
1017
1018 Py_RETURN_NONE;
1019}
1020
1021
1022PyDoc_STRVAR(Diff_find_similar__doc__,

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…