aboutsummaryrefslogtreecommitdiff
path: root/submodule-config.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2026-03-12 09:42:56 +0100
committerJunio C Hamano <gitster@pobox.com>2026-03-12 08:38:42 -0700
commit6daeb66baac581ab81148bcb9d5fcc61ae33347e (patch)
tree6910f914073c8af63434be9d36725251b56988b8 /submodule-config.c
parent6cdef943d28fa7d6964ec570b33a0bff4c80ea8c (diff)
downloadgit-6daeb66baac581ab81148bcb9d5fcc61ae33347e.tar.xz
odb: stop including "odb/source.h"
The "odb.h" header currently includes the "odb/source.h" file. This is somewhat roundabout though: most callers shouldn't have to care about the `struct odb_source`, but should rather use the ODB-level functions. Furthermore, it means that a couple of definitions have to live on the source level even though they should be part of the generic interface. Reverse the relation between "odb/source.h" and "odb.h" and move the enums and typedefs that relate to the generic interfaces back into "odb.h". Add the necessary includes to all files that rely on the transitive include. Suggested-by: Justin Tobler <jltobler@gmail.com> Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'submodule-config.c')
-rw-r--r--submodule-config.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/submodule-config.c b/submodule-config.c
index 1f19fe2077..72a46b7a54 100644
--- a/submodule-config.c
+++ b/submodule-config.c
@@ -14,6 +14,7 @@
#include "strbuf.h"
#include "object-name.h"
#include "odb.h"
+#include "odb/source.h"
#include "parse-options.h"
#include "thread-utils.h"
#include "tree-walk.h"