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

Function Repository_lookup_note

src/repository.c:2021–2036  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2019 "Lookup a note for an annotated object in a repository.");
2020
2021PyObject *
2022Repository_lookup_note(Repository *self, PyObject* args)
2023{
2024 git_oid annotated_id;
2025 char* annotated = NULL, *ref = "refs/notes/commits";
2026 int err;
2027
2028 if (!PyArg_ParseTuple(args, "s|s", &annotated, &ref))
2029 return NULL;
2030
2031 err = git_oid_fromstr(&annotated_id, annotated);
2032 if (err < 0)
2033 return Error_set(err);
2034
2035 return (PyObject*) wrap_note(self, NULL, &annotated_id, ref);
2036}
2037
2038PyDoc_STRVAR(Repository_reset__doc__,
2039 "reset(oid: Oid, reset_mode: enums.ResetMode)\n"

Callers

nothing calls this directly

Calls 2

Error_setFunction · 0.85
wrap_noteFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…