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

Function foreach_mergehead_cb

src/repository.c:2380–2393  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2378}
2379
2380static int foreach_mergehead_cb(const git_oid *oid, void *payload)
2381{
2382 PyObject* py_oid = git_oid_to_python(oid);
2383 if (py_oid == NULL)
2384 return GIT_EUSER;
2385
2386 PyObject* list = (PyObject*) payload;
2387 int err = PyList_Append(list, (PyObject*) py_oid);
2388 Py_DECREF(py_oid);
2389 if (err < 0)
2390 return GIT_EUSER;
2391
2392 return 0;
2393}
2394
2395PyDoc_STRVAR(Repository_listall_mergeheads__doc__,
2396 "listall_mergeheads() -> list[Oid]\n"

Callers

nothing calls this directly

Calls 1

git_oid_to_pythonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…