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

Function Repository_compress_references

src/repository.c:1696–1712  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1694 "databases, for example, this may pack all loose references.");
1695
1696PyObject *
1697Repository_compress_references(Repository *self)
1698{
1699 git_refdb *refdb;
1700 int err;
1701
1702 err = git_repository_refdb(&refdb, self->repo);
1703 if (err < 0)
1704 return Error_set(err);
1705
1706 err = git_refdb_compress(refdb);
1707
1708 git_refdb_free(refdb);
1709 if (err < 0)
1710 return Error_set(err);
1711 Py_RETURN_NONE;
1712}
1713
1714PyDoc_STRVAR(Repository_status__doc__,
1715 "status(untracked_files: str = \"all\", ignored: bool = False) -> dict[str, enums.FileStatus]\n"

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…