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

Function Repository_path__get__

src/repository.c:469–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467 "The normalized path to the git repository.");
468
469PyObject *
470Repository_path__get__(Repository *self, void *closure)
471{
472 const char *c_path;
473 if (self->repo == NULL)
474 Py_RETURN_NONE;
475
476 c_path = git_repository_path(self->repo);
477 if (c_path == NULL)
478 Py_RETURN_NONE;
479
480 return PyUnicode_DecodeFSDefault(c_path);
481}
482
483
484PyDoc_STRVAR(Repository_workdir__doc__,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…