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

Function Object__load

src/object.c:57–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55
56
57git_object*
58Object__load(Object *self)
59{
60 if (self->obj == NULL) {
61 int err = git_tree_entry_to_object(&self->obj, self->repo->repo, self->entry);
62 if (err < 0) {
63 Error_set(err);
64 return NULL;
65 }
66 }
67
68 return self->obj;
69}
70
71const git_oid*
72Object__id(Object *self)

Callers 15

Tag_target__get__Function · 0.85
Tag_get_objectFunction · 0.85
Tag_name__get__Function · 0.85
Tag_raw_name__get__Function · 0.85
Tag_tagger__get__Function · 0.85
Tag_message__get__Function · 0.85
Tag_raw_message__get__Function · 0.85
Blob_diffFunction · 0.85
Blob_diff_to_bufferFunction · 0.85
Blob__write_to_queueFunction · 0.85
Blob_size__get__Function · 0.85
Blob_is_binary__get__Function · 0.85

Calls 1

Error_setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…