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

Function Reference_delete

src/reference.c:191–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189 "Delete this reference. It will no longer be valid!");
190
191PyObject *
192Reference_delete(Reference *self, PyObject *args)
193{
194 int err;
195
196 CHECK_REFERENCE(self);
197
198 /* Delete the reference */
199 err = git_reference_delete(self->reference);
200 if (err < 0)
201 return Error_set(err);
202
203 git_reference_free(self->reference);
204 self->reference = NULL; /* Invalidate the pointer */
205
206 Py_RETURN_NONE;
207}
208
209
210PyDoc_STRVAR(Reference_rename__doc__,

Callers

nothing calls this directly

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…