| 42 | "Delete this branch. It will no longer be valid!"); |
| 43 | |
| 44 | PyObject * |
| 45 | Branch_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 | |
| 63 | PyDoc_STRVAR(Branch_is_head__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…