| 149 | } |
| 150 | |
| 151 | static void copy_obj_to_fd(int fd, const struct object_id *oid) |
| 152 | { |
| 153 | size_t size; |
| 154 | enum object_type type; |
| 155 | char *buf = odb_read_object(the_repository->objects, oid, &type, &size); |
| 156 | if (buf) { |
| 157 | if (size) |
| 158 | write_or_die(fd, buf, size); |
| 159 | free(buf); |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | static void write_commented_object(int fd, const struct object_id *object) |
| 164 | { |
no test coverage detected