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

Function Object_filemode__get__

src/object.c:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163PyDoc_STRVAR(Object_filemode__doc__,
164 "An enums.FileMode constant (or None if the object was not reached through a tree)");
165PyObject *
166Object_filemode__get__(Object *self)
167{
168 if (self->entry == NULL)
169 Py_RETURN_NONE;
170
171 return pygit2_enum(FileModeEnum, git_tree_entry_filemode(self->entry));
172}
173
174
175PyDoc_STRVAR(Object_read_raw__doc__,

Callers

nothing calls this directly

Calls 1

pygit2_enumFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…