| 2019 | "Lookup a note for an annotated object in a repository."); |
| 2020 | |
| 2021 | PyObject * |
| 2022 | Repository_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 | |
| 2038 | PyDoc_STRVAR(Repository_reset__doc__, |
| 2039 | "reset(oid: Oid, reset_mode: enums.ResetMode)\n" |