diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-05-21 01:17:43 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-05-27 00:48:26 +0200 |
commit | 5dfaf49a5a651d3e8c3552bc2e833312a3671a4f (patch) | |
tree | f87f12552c923b46de589e26a70e7fc67502aed7 /pack.h | |
parent | chunk-format.h: extract oid_version() (diff) | |
download | git-5dfaf49a5a651d3e8c3552bc2e833312a3671a4f.tar.xz git-5dfaf49a5a651d3e8c3552bc2e833312a3671a4f.zip |
pack-mtimes: support writing pack .mtimes files
Now that the `.mtimes` format is defined, supplement the pack-write API
to be able to conditionally write an `.mtimes` file along with a pack by
setting an additional flag and passing an oidmap that contains the
timestamps corresponding to each object in the pack.
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'pack.h')
-rw-r--r-- | pack.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -44,6 +44,7 @@ struct pack_idx_option { #define WRITE_IDX_STRICT 02 #define WRITE_REV 04 #define WRITE_REV_VERIFY 010 +#define WRITE_MTIMES 020 uint32_t version; uint32_t off32_limit; |