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

Function Object_name__get__

src/object.c:143–150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141PyDoc_STRVAR(Object_name__doc__,
142 "Name (or None if the object was not reached through a tree)");
143PyObject *
144Object_name__get__(Object *self)
145{
146 if (self->entry == NULL)
147 Py_RETURN_NONE;
148
149 return PyUnicode_DecodeFSDefault(git_tree_entry_name(self->entry));
150}
151
152PyDoc_STRVAR(Object_raw_name__doc__, "Name (bytes).");
153

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…