summaryrefslogtreecommitdiff
path: root/pack.h
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2022-05-20 23:17:38 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-05-26 22:48:26 (GMT)
commit1c573cdd7219db5600fb2b5249f7c8835c8d416d (patch)
treed15871c8d1dadb425cfa09e64cde30bbd9fa7182 /pack.h
parent94cd775a6c52a99caeb1278c3d8044ee109e2d3e (diff)
downloadgit-1c573cdd7219db5600fb2b5249f7c8835c8d416d.zip
git-1c573cdd7219db5600fb2b5249f7c8835c8d416d.tar.gz
git-1c573cdd7219db5600fb2b5249f7c8835c8d416d.tar.bz2
pack-write: pass 'struct packing_data' to 'stage_tmp_packfiles'
This structure will be used to communicate the per-object mtimes when writing a cruft pack. Here, we need the full packing_data structure because the mtime information is stored in an array there, not on the individual object_entry's themselves (to avoid paying the overhead in structure width for operations which do not generate a cruft pack). We haven't passed this information down before because one of the two callers (in bulk-checkin.c) does not have a packing_data structure at all. In that case (where no cruft pack will be generated), NULL is passed instead. 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pack.h b/pack.h
index b22bfc4..fd27cfd 100644
--- a/pack.h
+++ b/pack.h
@@ -109,11 +109,14 @@ int encode_in_pack_object_header(unsigned char *hdr, int hdr_len,
#define PH_ERROR_PROTOCOL (-3)
int read_pack_header(int fd, struct pack_header *);
+struct packing_data;
+
struct hashfile *create_tmp_packfile(char **pack_tmp_name);
void stage_tmp_packfiles(struct strbuf *name_buffer,
const char *pack_tmp_name,
struct pack_idx_entry **written_list,
uint32_t nr_written,
+ struct packing_data *to_pack,
struct pack_idx_option *pack_idx_opts,
unsigned char hash[],
char **idx_tmp_name);