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

Function Repository_workdir__get__

src/repository.c:488–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

486 "repository is bare, None will be returned.");
487
488PyObject *
489Repository_workdir__get__(Repository *self, void *closure)
490{
491 const char *c_path;
492
493 c_path = git_repository_workdir(self->repo);
494 if (c_path == NULL)
495 Py_RETURN_NONE;
496
497 return PyUnicode_DecodeFSDefault(c_path);
498}
499
500int
501Repository_workdir__set__(Repository *self, PyObject *py_workdir)

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…