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

Function Odb_add_disk_alternate

src/odb.c:143–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141 "are checked. Writing is disabled on alternate backends.\n");
142
143PyObject *
144Odb_add_disk_alternate(Odb *self, PyObject *py_path)
145{
146 PyObject *tvalue;
147 char *path = pgit_borrow_fsdefault(py_path, &tvalue);
148 if (path == NULL)
149 return NULL;
150
151 int err = git_odb_add_disk_alternate(self->odb, path);
152 Py_DECREF(tvalue);
153 if (err)
154 return Error_set(err);
155
156 Py_RETURN_NONE;
157}
158
159git_odb_object *
160Odb_read_raw(git_odb *odb, const git_oid *oid, size_t len)

Callers

nothing calls this directly

Calls 2

pgit_borrow_fsdefaultFunction · 0.85
Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…