MCPcopy Index your code
hub / github.com/git/git / notes_cache_put

Function notes_cache_put

notes-cache.c:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96int notes_cache_put(struct notes_cache *c, struct object_id *key_oid,
97 const char *data, size_t size)
98{
99 struct object_id value_oid;
100
101 if (odb_write_object(the_repository->objects, data,
102 size, OBJ_BLOB, &value_oid) < 0)
103 return -1;
104 return add_note(&c->tree, key_oid, &value_oid, NULL);
105}

Callers 1

fill_textconvFunction · 0.85

Calls 2

odb_write_objectFunction · 0.85
add_noteFunction · 0.85

Tested by

no test coverage detected