| 94 | } |
| 95 | |
| 96 | int 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 | } |
no test coverage detected