* Called only from check_object() after it verified this object * is Ok. */
| 201 | * is Ok. |
| 202 | */ |
| 203 | static void write_cached_object(struct object *obj, struct obj_buffer *obj_buf) |
| 204 | { |
| 205 | struct object_id oid; |
| 206 | |
| 207 | if (odb_write_object(the_repository->objects, obj_buf->buffer, obj_buf->size, |
| 208 | obj->type, &oid) < 0) |
| 209 | die("failed to write object %s", oid_to_hex(&obj->oid)); |
| 210 | obj->flags |= FLAG_WRITTEN; |
| 211 | } |
| 212 | |
| 213 | /* |
| 214 | * At the very end of the processing, write_rest() scans the objects |
no test coverage detected