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

Function Repository_odb__get__

src/repository.c:1916–1927  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1914PyDoc_STRVAR(Repository_odb__doc__, "Return the object database for this repository");
1915
1916PyObject *
1917Repository_odb__get__(Repository *self)
1918{
1919 git_odb *odb;
1920 int err;
1921
1922 err = git_repository_odb(&odb, self->repo);
1923 if (err < 0)
1924 return Error_set(err);
1925
1926 return wrap_odb(odb);
1927}
1928
1929PyDoc_STRVAR(Repository_refdb__doc__, "Return the reference database for this repository");
1930

Callers

nothing calls this directly

Calls 2

Error_setFunction · 0.85
wrap_odbFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…