builtin/repack.c: clean up unused `#include`s

Over the past several dozen commits, we have moved a large amount of functionality out of the repack builtin and into other files like repack.c, repack-cruft.c, repack-filtered.c, repack-midx.c, and repack-promisor.c. These files specify the minimal set of `#include`s that they need to compile successfully, but we did not change the set of `#include`s in the repack builtin itself. Now that the code movement is complete, let's clean up that set of `#include`s and trim down the builtin to include the minimal amount of external headers necessary to compile. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Taylor Blau committed Oct 15, 2025 at 18:29 UTC 935ab44a0a4fae54f9cd378ede16f19e563e53d9
1 file changed -9
builtin/repack.c
-9
@@ -4,26 +4,17 @@
4 #include "builtin.h"
5 #include "config.h"
6 #include "environment.h"
7 -#include "gettext.h"
8 -#include "hex.h"
7 #include "parse-options.h"
8 #include "path.h"
9 #include "run-command.h"
10 #include "server-info.h"
13 -#include "strbuf.h"
11 #include "string-list.h"
15 -#include "strvec.h"
12 #include "midx.h"
13 #include "packfile.h"
14 #include "prune-packed.h"
19 -#include "odb.h"
15 #include "promisor-remote.h"
16 #include "repack.h"
17 #include "shallow.h"
23 -#include "pack.h"
24 -#include "pack-bitmap.h"
25 -#include "refs.h"
26 -#include "list-objects-filter-options.h"
18
19 #define ALL_INTO_ONE 1
20 #define LOOSEN_UNREACHABLE 2