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

Function Refdb_set_backend

src/refdb.c:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 "Sets a custom RefdbBackend for this Refdb.");
68
69PyObject *
70Refdb_set_backend(Refdb *self, RefdbBackend *backend)
71{
72 int err;
73 err = git_refdb_set_backend(self->refdb, backend->refdb_backend);
74 if (err != 0)
75 return Error_set(err);
76 Py_RETURN_NONE;
77}
78
79PyDoc_STRVAR(Refdb_new__doc__, "Refdb.new(repo: Repository) -> Refdb\n"
80 "Creates a new refdb with no backend.");

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…