diff options
| author | Patrick Steinhardt <ps@pks.im> | 2024-11-18 16:33:52 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-11-19 12:23:08 +0900 |
| commit | 17e80398782b4e8746a389604aaaf9744fd6900a (patch) | |
| tree | 23f9c678af55d553466e5656fb0eda7e6d4fda47 | |
| parent | Merge branch 'ps/reftable-strbuf' into ps/reftable-detach (diff) | |
| download | git-17e80398782b4e8746a389604aaaf9744fd6900a.tar.gz git-17e80398782b4e8746a389604aaaf9744fd6900a.zip | |
reftable/system: move "dir.h" to its only user
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>
| -rw-r--r-- | reftable/system.h | 1 | ||||
| -rw-r--r-- | t/unit-tests/t-reftable-stack.c | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/reftable/system.h b/reftable/system.h index 5ec8583343..8564213475 100644 --- a/reftable/system.h +++ b/reftable/system.h @@ -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); diff --git a/t/unit-tests/t-reftable-stack.c b/t/unit-tests/t-reftable-stack.c index 72f6747064..1b4363a58f 100644 --- a/t/unit-tests/t-reftable-stack.c +++ b/t/unit-tests/t-reftable-stack.c @@ -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" |
