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

Function Diff_deltas__get__

src/diff.c:681–694  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

679PyDoc_STRVAR(Diff_deltas__doc__, "Iterate over the diff deltas.");
680
681PyObject *
682Diff_deltas__get__(Diff *self)
683{
684 DeltasIter *iter;
685
686 iter = PyObject_New(DeltasIter, &DeltasIterType);
687 if (iter != NULL) {
688 Py_INCREF(self);
689 iter->diff = self;
690 iter->i = 0;
691 iter->n = git_diff_num_deltas(self->diff);
692 }
693 return (PyObject*)iter;
694}
695
696PyDoc_STRVAR(Diff_patch__doc__,
697 "Patch diff string. Can be None in some cases, such as empty commits.");

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…