]> git.ipfire.org Git - thirdparty/git.git/commitdiff
reftable/system: move "dir.h" to its only user
authorPatrick Steinhardt <ps@pks.im>
Mon, 18 Nov 2024 15:33:52 +0000 (16:33 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 19 Nov 2024 03:23:08 +0000 (12:23 +0900)
We still include "dir.h" in "reftable/system.h" even though it is not
used by anything but by a single unit test. Move it over into that unit
test so that we don't accidentally use any functionality provided by it
in the reftable codebase.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
reftable/system.h
t/unit-tests/t-reftable-stack.c

index 5ec85833434727c720abb4ba00dc7a22c8ac5d26..8564213475e27c13e62531ebf5d6884d475e42db 100644 (file)
@@ -15,7 +15,6 @@ https://developers.google.com/open-source/licenses/bsd
 #include "lockfile.h"
 #include "tempfile.h"
 #include "hash.h" /* hash ID, sizes.*/
-#include "dir.h" /* remove_dir_recursively, for tests.*/
 
 int hash_size(uint32_t id);
 
index 72f6747064f62106e87c9a90e5fe315139d46e60..1b4363a58fc5be3ec6daad40469eec7ac5c36e02 100644 (file)
@@ -8,6 +8,7 @@ https://developers.google.com/open-source/licenses/bsd
 
 #include "test-lib.h"
 #include "lib-reftable.h"
+#include "dir.h"
 #include "reftable/merged.h"
 #include "reftable/reader.h"
 #include "reftable/reftable-error.h"