| 273 | } |
| 274 | |
| 275 | static int |
| 276 | pygit2_refdb_backend_del(git_refdb_backend *_be, |
| 277 | const char *ref_name, const git_oid *_old, const char *old_target) |
| 278 | { |
| 279 | PyObject *args, *old; |
| 280 | struct pygit2_refdb_backend *be = (struct pygit2_refdb_backend *)_be; |
| 281 | old = git_oid_to_python(_old); |
| 282 | |
| 283 | if ((args = Py_BuildValue("(sOs)", ref_name, old, old_target)) == NULL) { |
| 284 | Py_DECREF(old); |
| 285 | return GIT_EUSER; |
| 286 | } |
| 287 | PyObject_CallObject(be->rename, args); |
| 288 | Py_DECREF(old); |
| 289 | Py_DECREF(args); |
| 290 | return git_error_for_exc(); |
| 291 | } |
| 292 | |
| 293 | static int |
| 294 | pygit2_refdb_backend_compress(git_refdb_backend *_be) |
nothing calls this directly
no test coverage detected
searching dependent graphs…