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

Function Note_remove

src/note.c:44–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 "Removes a note for an annotated object");
43
44PyObject *
45Note_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
68PyDoc_STRVAR(Note_message__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…