* Writes the object mtimes of "objects" for use in a .mtimes file. * Note that objects must be in lexicographic (index) order, which is * the expected ordering of these values in the .mtimes file. */
| 313 | * the expected ordering of these values in the .mtimes file. |
| 314 | */ |
| 315 | static void write_mtimes_objects(struct hashfile *f, |
| 316 | struct packing_data *to_pack, |
| 317 | struct pack_idx_entry **objects, |
| 318 | uint32_t nr_objects) |
| 319 | { |
| 320 | uint32_t i; |
| 321 | for (i = 0; i < nr_objects; i++) { |
| 322 | struct object_entry *e = (struct object_entry*)objects[i]; |
| 323 | hashwrite_be32(f, oe_cruft_mtime(to_pack, e)); |
| 324 | } |
| 325 | } |
| 326 | |
| 327 | static void write_mtimes_trailer(const struct git_hash_algo *hash_algo, |
| 328 | struct hashfile *f, const unsigned char *hash) |
no test coverage detected