Re: [PATCH 2/6] packfile: rename lifecycle functions
On Tue, Nov 24, 2026 at 03:47:25PM -0800, Junio C Hamano wrote:
Show 15 quoted lines
> Patrick Steinhardt <ps@pks.im> writes:
> > @@ -217,32 +217,33 @@ int for_each_object_in_pack(struct packed_git *p,
> > #define PACKDIR_FILE_GARBAGE 4
> > extern void (*report_garbage)(unsigned seen_bits, const char *path);
> >
> > +uint32_t get_pack_fanout(struct packed_git *p, uint32_t value);
> > +
> > +struct object_database;
>
> The forward declaration for struct object_database moved here was
> already unused in packfile.h, since odb.h is included at the top of the
> header and no prototype here takes that type. Moving it around can
> probably be skipped, or it could be dropped separately.
>
> Other than that, the step is done very nicely.
Ah, true. Let me just drop it while at it.
Patrick