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

Function write_mtimes_objects

pack-write.c:315–325  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

313 * the expected ordering of these values in the .mtimes file.
314 */
315static 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
327static void write_mtimes_trailer(const struct git_hash_algo *hash_algo,
328 struct hashfile *f, const unsigned char *hash)

Callers 1

write_mtimes_fileFunction · 0.85

Calls 2

hashwrite_be32Function · 0.85
oe_cruft_mtimeFunction · 0.85

Tested by

no test coverage detected