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

Function Reference_raw_target__get__

src/reference.c:311–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 "reference.\n");
310
311PyObject *
312Reference_raw_target__get__(Reference *self)
313{
314 const char * c_name = NULL;
315 PyObject * ret;
316
317 ret = Reference_target_impl(self, &c_name);
318 if (ret != NULL)
319 return ret;
320 if (c_name != NULL)
321 return PyBytes_FromString(c_name);
322 return NULL;
323}
324
325PyDoc_STRVAR(Reference_set_target__doc__,
326 "set_target(target[, message: str])\n"

Callers

nothing calls this directly

Calls 1

Reference_target_implFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…