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

Function PyList_GetItemRef

src/repository.c:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49// TODO: remove this function when Python 3.13 becomes the minimum supported version
50#if PY_MAJOR_VERSION == 3 && PY_MINOR_VERSION < 13
51static inline PyObject *
52PyList_GetItemRef(PyObject *op, Py_ssize_t index)
53{
54 PyObject *item = PyList_GetItem(op, index);
55 Py_XINCREF(item);
56 return item;
57}
58#endif
59
60extern PyObject *GitError;

Callers 3

merge_base_xxxFunction · 0.85
Repository_create_commitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…