| 299 | } |
| 300 | |
| 301 | static int |
| 302 | pygit2_refdb_backend_has_log(git_refdb_backend *_be, const char *refname) |
| 303 | { |
| 304 | int err; |
| 305 | PyObject *args, *result; |
| 306 | struct pygit2_refdb_backend *be = (struct pygit2_refdb_backend *)_be; |
| 307 | |
| 308 | if ((args = Py_BuildValue("(s)", refname)) == NULL) { |
| 309 | return GIT_EUSER; |
| 310 | } |
| 311 | result = PyObject_CallObject(be->has_log, args); |
| 312 | Py_DECREF(args); |
| 313 | |
| 314 | if ((err = git_error_for_exc()) != 0) { |
| 315 | return err; |
| 316 | } |
| 317 | |
| 318 | if (PyObject_IsTrue(result)) { |
| 319 | Py_DECREF(result); |
| 320 | return 1; |
| 321 | } |
| 322 | |
| 323 | Py_DECREF(result); |
| 324 | return 0; |
| 325 | } |
| 326 | |
| 327 | static int |
| 328 | pygit2_refdb_backend_ensure_log(git_refdb_backend *_be, const char *refname) |
nothing calls this directly
no test coverage detected
searching dependent graphs…