| 1952 | PyDoc_STRVAR(Repository_notes__doc__, ""); |
| 1953 | |
| 1954 | PyObject * |
| 1955 | Repository_notes(Repository *self, PyObject *args) |
| 1956 | { |
| 1957 | char *ref = "refs/notes/commits"; |
| 1958 | if (!PyArg_ParseTuple(args, "|s", &ref)) |
| 1959 | return NULL; |
| 1960 | |
| 1961 | NoteIter *iter = PyObject_New(NoteIter, &NoteIterType); |
| 1962 | if (iter == NULL) |
| 1963 | return NULL; |
| 1964 | |
| 1965 | Py_INCREF(self); |
| 1966 | iter->repo = self; |
| 1967 | iter->ref = ref; |
| 1968 | iter->iter = NULL; |
| 1969 | |
| 1970 | int err = git_note_iterator_new(&iter->iter, self->repo, iter->ref); |
| 1971 | if (err != GIT_OK) { |
| 1972 | Py_DECREF(iter); |
| 1973 | return Error_set(err); |
| 1974 | } |
| 1975 | |
| 1976 | return (PyObject*)iter; |
| 1977 | } |
| 1978 | |
| 1979 | |
| 1980 | PyDoc_STRVAR(Repository_create_note__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…