| 42 | "Removes a note for an annotated object"); |
| 43 | |
| 44 | PyObject * |
| 45 | Note_remove(Note *self, PyObject* args) |
| 46 | { |
| 47 | char *ref = "refs/notes/commits"; |
| 48 | int err = GIT_ERROR; |
| 49 | Signature *py_author, *py_committer; |
| 50 | Oid *id; |
| 51 | |
| 52 | if (!PyArg_ParseTuple(args, "O!O!|s", |
| 53 | &SignatureType, &py_author, |
| 54 | &SignatureType, &py_committer, |
| 55 | &ref)) |
| 56 | return NULL; |
| 57 | |
| 58 | id = (Oid *) self->annotated_id; |
| 59 | err = git_note_remove(self->repo->repo, ref, py_author->signature, |
| 60 | py_committer->signature, &id->oid); |
| 61 | if (err < 0) |
| 62 | return Error_set(err); |
| 63 | |
| 64 | Py_RETURN_NONE; |
| 65 | } |
| 66 | |
| 67 | |
| 68 | PyDoc_STRVAR(Note_message__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…