Skip to content

Commit e056dec

Browse files
ttaylorrgitster
authored andcommitted
builtin/repack.c: clean up unused #includes
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6f8838e commit e056dec

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

builtin/repack.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,17 @@
44
#include "builtin.h"
55
#include "config.h"
66
#include "environment.h"
7-
#include "gettext.h"
8-
#include "hex.h"
97
#include "parse-options.h"
108
#include "path.h"
119
#include "run-command.h"
1210
#include "server-info.h"
13-
#include "strbuf.h"
1411
#include "string-list.h"
15-
#include "strvec.h"
1612
#include "midx.h"
1713
#include "packfile.h"
1814
#include "prune-packed.h"
19-
#include "odb.h"
2015
#include "promisor-remote.h"
2116
#include "repack.h"
2217
#include "shallow.h"
23-
#include "pack.h"
24-
#include "pack-bitmap.h"
25-
#include "refs.h"
26-
#include "list-objects-filter-options.h"
2718

2819
#define ALL_INTO_ONE 1
2920
#define LOOSEN_UNREACHABLE 2

0 commit comments

Comments
 (0)