🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.git
1 messages
1 total messages Started by Junio C Hamano Tue, 24 Nov 2026 23:47
Re: [PATCH 2/6] packfile: rename lifecycle functions
#3763
Author: Junio C Hamano
Date: Tue, 24 Nov 2026 23:47
29 lines
13712 bytes
Patrick Steinhardt <ps@pks.im> writes:

> Ideally we'd modernize all of that, but that would lead to a huge amount
> of churn. Instead, let's improve the subsystem one step at a time and
> rename lifecycle-related functions to match modern best practices.

Scoping the rename to lifecycle functions makes this much easier to
review, and add_packed_git() to packfile_from_idx() is especially
welcome because the function never actually added the pack to a store.
All callers of the seven renamed symbols across the repository look
consistently updated with behavior preserved.

> @@ -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.

Thanks.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads