summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-05-20 23:17:43 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-05-26 22:48:26 (GMT)
commit5dfaf49a5a651d3e8c3552bc2e833312a3671a4f (patch)
treef87f12552c923b46de589e26a70e7fc67502aed7 /pack.h
parentd9fef9d90d27b6794350ec3bc622042b79397088 (diff)
downloadgit-5dfaf49a5a651d3e8c3552bc2e833312a3671a4f.zip
git-5dfaf49a5a651d3e8c3552bc2e833312a3671a4f.tar.gz
git-5dfaf49a5a651d3e8c3552bc2e833312a3671a4f.tar.bz2
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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pack.h b/pack.h
index fd27cfd..01d3859 100644
--- a/pack.h
+++ b/pack.h
@@ -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;