| 66 | "True if HEAD points at the branch, False otherwise."); |
| 67 | |
| 68 | PyObject * |
| 69 | Branch_is_head(Branch *self) |
| 70 | { |
| 71 | int err; |
| 72 | |
| 73 | CHECK_REFERENCE(self); |
| 74 | |
| 75 | err = git_branch_is_head(self->reference); |
| 76 | if (err == 1) |
| 77 | Py_RETURN_TRUE; |
| 78 | else if (err == 0) |
| 79 | Py_RETURN_FALSE; |
| 80 | else |
| 81 | return Error_set(err); |
| 82 | } |
| 83 | |
| 84 | PyDoc_STRVAR(Branch_is_checked_out__doc__, |
| 85 | "is_checked_out() -> bool\n" |
nothing calls this directly
no test coverage detected
searching dependent graphs…