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

Function Diff_iter

src/diff.c:1058–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056}
1057
1058PyObject *
1059Diff_iter(Diff *self)
1060{
1061 DiffIter *iter;
1062
1063 iter = PyObject_New(DiffIter, &DiffIterType);
1064 if (iter != NULL) {
1065 Py_INCREF(self);
1066 iter->diff = self;
1067 iter->i = 0;
1068 iter->n = git_diff_num_deltas(self->diff);
1069 }
1070 return (PyObject*)iter;
1071}
1072
1073PyObject *
1074Diff_getitem(Diff *self, PyObject *value)

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…