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

Function Repository_head_is_detached__get__

src/repository.c:235–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233 "instead of a branch.");
234
235PyObject *
236Repository_head_is_detached__get__(Repository *self)
237{
238 if (git_repository_head_detached(self->repo) > 0)
239 Py_RETURN_TRUE;
240
241 Py_RETURN_FALSE;
242}
243
244
245PyDoc_STRVAR(Repository_head_is_unborn__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…