MCPcopy Create free account
hub / github.com/libgit2/pygit2 / pygit2_refdb_backend_del

Function pygit2_refdb_backend_del

src/refdb_backend.c:275–291  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

273}
274
275static int
276pygit2_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
293static int
294pygit2_refdb_backend_compress(git_refdb_backend *_be)

Callers

nothing calls this directly

Calls 2

git_oid_to_pythonFunction · 0.85
git_error_for_excFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…