From: LorenzoPegorari Date: Sat, 18 Apr 2026 14:17:01 GMT Subject: [GSoC PATCH v6 2/6] repack-promisor add helper to fill promisor file after repack Message-ID: In-Reply-To: A ".promisor" file may contain ref names (and their associated hashes) that were fetched at the time the corresponding packfile was downloaded. This information is used for debugging reasons. This information is stored as lines structured like this: " ". Create a `write_promisor_file_after_repack()` helper function that allows this debugging info to not be lost after a `repack`, by copying it inside a new ".promisor" file. The function logic is the following: * Take all ".promisor" files contained inside the given `repo`. * Ignore those whose name is contained inside the given `strset not_repacked_names`, which basically acts as a "promisor ignorelist" (intended to be used for packfiles that have not been repacked). * Read each line of the remaining ".promisor" files, which can be: * " " if the ".promisor" file was never repacked. If so, add the time (in Unix time) at which the ".promisor" file was last modified