Re: [PATCH 25/32] pack-compat-map: Add support for .compat files of a packfile
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Sep 11, 2023, 06:30 UTC
- Message-ID
- <xmqqfs3li5ly.fsf@gitster.g>
- In-Reply-To
- <20230908231049.2035003-25-ebiederm@xmission.com>
"Eric W. Biederman" <ebiederm@xmission.com> writes:
Show 17 quoted lines
> diff --git a/pack-write.c b/pack-write.c > index b19ddf15b284..f22eea964f77 100644 > --- a/pack-write.c > +++ b/pack-write.c > @@ -12,6 +12,7 @@ > #include "pack-revindex.h" > #include "path.h" > #include "strbuf.h" > +#include "object-file-convert.h" > ... > +/* > + * The *hash contains the pack content hash. > + * The objects array is passed in sorted. > + */ > +const char *write_compat_map_file(const char *compat_map_name, > + struct pack_idx_entry **objects, > + int nr_objects, const unsigned char *hash)
Include "pack-compat-map.h"; otherwise the compiler would complain for missing prototypes.