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

Function Error_set_oid

src/error.c:121–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121PyObject *
122Error_set_oid(int err, const git_oid *oid, size_t len)
123{
124 char hex[GIT_OID_HEXSZ + 1];
125
126 git_oid_fmt(hex, oid);
127 hex[len] = '\0';
128 return Error_set_str(err, hex);
129}
130
131PyObject *
132Error_type_error(const char *format, PyObject *value)

Callers 9

Repository_create_tagFunction · 0.85
Repository_resetFunction · 0.85
Commit_parents__get__Function · 0.85
Odb_read_rawFunction · 0.85
Odb_read_headerFunction · 0.85
OdbBackend_readFunction · 0.85
OdbBackend_read_prefixFunction · 0.85
OdbBackend_read_headerFunction · 0.85

Calls 1

Error_set_strFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…