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

Function Repository_expand_id

src/repository.c:2103–2114  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2101 "Expand a string into a full Oid according to the objects in this repository.\n");
2102
2103PyObject *
2104Repository_expand_id(Repository *self, PyObject *py_hex)
2105{
2106 git_oid oid;
2107 int err;
2108
2109 err = py_oid_to_git_oid_expand(self->repo, py_hex, &oid);
2110 if (err < 0)
2111 return NULL;
2112
2113 return git_oid_to_python(&oid);
2114}
2115
2116PyDoc_STRVAR(Repository_add_worktree__doc__,
2117 "add_worktree(name: str, path: str | bytes[, ref: Reference]) -> Worktree\n"

Callers

nothing calls this directly

Calls 2

py_oid_to_git_oid_expandFunction · 0.85
git_oid_to_pythonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…