]> git.ipfire.org Git - thirdparty/git.git/commit - packfile.c
pack-mtimes: support reading .mtimes files
authorTaylor Blau <me@ttaylorr.com>
Fri, 20 May 2022 23:17:35 +0000 (19:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 26 May 2022 22:48:26 +0000 (15:48 -0700)
commit94cd775a6c52a99caeb1278c3d8044ee109e2d3e
tree82356eb7d022d44f0bc0a290f3ffc2685fdcebb2
parent3d89a8c11801af1f7aae9d009240fd43cf322845
pack-mtimes: support reading .mtimes files

To store the individual mtimes of objects in a cruft pack, introduce a
new `.mtimes` format that can optionally accompany a single pack in the
repository.

The format is defined in Documentation/technical/pack-format.txt, and
stores a 4-byte network order timestamp for each object in name (index)
order.

This patch prepares for cruft packs by defining the `.mtimes` format,
and introducing a basic API that callers can use to read out individual
mtimes.

Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/technical/pack-format.txt
Makefile
builtin/repack.c
object-store.h
pack-mtimes.c [new file with mode: 0644]
pack-mtimes.h [new file with mode: 0644]
packfile.c