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

Function foreach_path_cb

src/repository.c:1514–1522  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1512 "Return a list with all submodule paths in the repository.\n");
1513
1514static int foreach_path_cb(git_submodule *submodule, const char *name, void *payload)
1515{
1516 PyObject *list = (PyObject *)payload;
1517 PyObject *path = to_unicode(git_submodule_path(submodule), NULL, NULL);
1518
1519 int err = PyList_Append(list, path);
1520 Py_DECREF(path);
1521 return err;
1522}
1523
1524PyObject *
1525Repository_listall_submodules(Repository *self, PyObject *args)

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…