| 1820 | "Returns the status of the given file path."); |
| 1821 | |
| 1822 | PyObject * |
| 1823 | Repository_status_file(Repository *self, PyObject *value) |
| 1824 | { |
| 1825 | PyObject *tvalue; |
| 1826 | char *path = pgit_borrow_fsdefault(value, &tvalue); |
| 1827 | if (!path) |
| 1828 | return NULL; |
| 1829 | |
| 1830 | unsigned int status; |
| 1831 | int err = git_status_file(&status, self->repo, path); |
| 1832 | if (err) { |
| 1833 | PyObject *err_obj = Error_set_str(err, path); |
| 1834 | Py_DECREF(tvalue); |
| 1835 | return err_obj; |
| 1836 | } |
| 1837 | Py_DECREF(tvalue); |
| 1838 | |
| 1839 | return pygit2_enum(FileStatusEnum, (int) status); |
| 1840 | } |
| 1841 | |
| 1842 | |
| 1843 | PyDoc_STRVAR(Repository_TreeBuilder__doc__, |
nothing calls this directly
no test coverage detected
searching dependent graphs…