| 2378 | } |
| 2379 | |
| 2380 | static 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 | |
| 2395 | PyDoc_STRVAR(Repository_listall_mergeheads__doc__, |
| 2396 | "listall_mergeheads() -> list[Oid]\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…