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

Function Branch_delete

src/branch.c:44–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 "Delete this branch. It will no longer be valid!");
43
44PyObject *
45Branch_delete(Branch *self, PyObject *args)
46{
47 int err;
48
49 CHECK_REFERENCE(self);
50
51 /* Delete the branch */
52 err = git_branch_delete(self->reference);
53 if (err < 0)
54 return Error_set(err);
55
56 git_reference_free(self->reference);
57 self->reference = NULL; /* Invalidate the pointer */
58
59 Py_RETURN_NONE;
60}
61
62
63PyDoc_STRVAR(Branch_is_head__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…