streaming: move into object database subsystem

The "streaming" terminology is somewhat generic, so it may not be immediately obvious that "streaming.{c,h}" is specific to the object database. Rectify this by moving it into the "odb/" directory so that it can be immediately attributed to the object subsystem. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Patrick Steinhardt committed Nov 23, 2025 at 19:59 UTC 1599b68d5e960a12f5ac624f81c70ece317db5a6
15 files changed +14 -14
Makefile
+1 -1
@@ -1201,6 +1201,7 @@ LIB_OBJS += object-file.o
1201 LIB_OBJS += object-name.o
1202 LIB_OBJS += object.o
1203 LIB_OBJS += odb.o
1204 +LIB_OBJS += odb/streaming.o
1205 LIB_OBJS += oid-array.o
1206 LIB_OBJS += oidmap.o
1207 LIB_OBJS += oidset.o
@@ -1294,7 +1295,6 @@ LIB_OBJS += split-index.o
1295 LIB_OBJS += stable-qsort.o
1296 LIB_OBJS += statinfo.o
1297 LIB_OBJS += strbuf.o
1297 -LIB_OBJS += streaming.o
1298 LIB_OBJS += string-list.o
1299 LIB_OBJS += strmap.o
1300 LIB_OBJS += strvec.o
archive-tar.c
+1 -1
@@ -12,8 +12,8 @@
12 #include "tar.h"
13 #include "archive.h"
14 #include "odb.h"
15 +#include "odb/streaming.h"
16 #include "strbuf.h"
16 -#include "streaming.h"
17 #include "run-command.h"
18 #include "write-or-die.h"
19
archive-zip.c
+1 -1
@@ -10,9 +10,9 @@
10 #include "gettext.h"
11 #include "git-zlib.h"
12 #include "hex.h"
13 -#include "streaming.h"
13 #include "utf8.h"
14 #include "odb.h"
15 +#include "odb/streaming.h"
16 #include "strbuf.h"
17 #include "userdiff.h"
18 #include "write-or-die.h"
builtin/cat-file.c
+1 -1
@@ -18,13 +18,13 @@
18 #include "list-objects-filter-options.h"
19 #include "parse-options.h"
20 #include "userdiff.h"
21 -#include "streaming.h"
21 #include "oid-array.h"
22 #include "packfile.h"
23 #include "pack-bitmap.h"
24 #include "object-file.h"
25 #include "object-name.h"
26 #include "odb.h"
27 +#include "odb/streaming.h"
28 #include "replace-object.h"
29 #include "promisor-remote.h"
30 #include "mailmap.h"
builtin/fsck.c
+1 -1
@@ -13,11 +13,11 @@
13 #include "fsck.h"
14 #include "parse-options.h"
15 #include "progress.h"
16 -#include "streaming.h"
16 #include "packfile.h"
17 #include "object-file.h"
18 #include "object-name.h"
19 #include "odb.h"
20 +#include "odb/streaming.h"
21 #include "path.h"
22 #include "read-cache-ll.h"
23 #include "replace-object.h"
builtin/index-pack.c
+1 -1
@@ -16,12 +16,12 @@
16 #include "progress.h"
17 #include "fsck.h"
18 #include "strbuf.h"
19 -#include "streaming.h"
19 #include "thread-utils.h"
20 #include "packfile.h"
21 #include "pack-revindex.h"
22 #include "object-file.h"
23 #include "odb.h"
24 +#include "odb/streaming.h"
25 #include "oid-array.h"
26 #include "oidset.h"
27 #include "path.h"
builtin/log.c
+1 -1
@@ -16,6 +16,7 @@
16 #include "refs.h"
17 #include "object-name.h"
18 #include "odb.h"
19 +#include "odb/streaming.h"
20 #include "pager.h"
21 #include "color.h"
22 #include "commit.h"
@@ -35,7 +36,6 @@
36 #include "parse-options.h"
37 #include "line-log.h"
38 #include "branch.h"
38 -#include "streaming.h"
39 #include "version.h"
40 #include "mailmap.h"
41 #include "progress.h"
builtin/pack-objects.c
+1 -1
@@ -22,7 +22,6 @@
22 #include "pack-objects.h"
23 #include "progress.h"
24 #include "refs.h"
25 -#include "streaming.h"
25 #include "thread-utils.h"
26 #include "pack-bitmap.h"
27 #include "delta-islands.h"
@@ -33,6 +32,7 @@
32 #include "packfile.h"
33 #include "object-file.h"
34 #include "odb.h"
35 +#include "odb/streaming.h"
36 #include "replace-object.h"
37 #include "dir.h"
38 #include "midx.h"
entry.c
+1 -1
@@ -2,13 +2,13 @@
2
3 #include "git-compat-util.h"
4 #include "odb.h"
5 +#include "odb/streaming.h"
6 #include "dir.h"
7 #include "environment.h"
8 #include "gettext.h"
9 #include "hex.h"
10 #include "name-hash.h"
11 #include "sparse-index.h"
11 -#include "streaming.h"
12 #include "submodule.h"
13 #include "symlinks.h"
14 #include "progress.h"
meson.build
+1 -1
@@ -397,6 +397,7 @@ libgit_sources = [
397 'object-name.c',
398 'object.c',
399 'odb.c',
400 + 'odb/streaming.c',
401 'oid-array.c',
402 'oidmap.c',
403 'oidset.c',
@@ -490,7 +491,6 @@ libgit_sources = [
491 'stable-qsort.c',
492 'statinfo.c',
493 'strbuf.c',
493 - 'streaming.c',
494 'string-list.c',
495 'strmap.c',
496 'strvec.c',
object-file.c
+1 -1
@@ -20,13 +20,13 @@
20 #include "object-file-convert.h"
21 #include "object-file.h"
22 #include "odb.h"
23 +#include "odb/streaming.h"
24 #include "oidtree.h"
25 #include "pack.h"
26 #include "packfile.h"
27 #include "path.h"
28 #include "read-cache-ll.h"
29 #include "setup.h"
29 -#include "streaming.h"
30 #include "tempfile.h"
31 #include "tmp-objdir.h"
32
odb/streaming.c renamed
+1 -1
@@ -5,10 +5,10 @@
5 #include "git-compat-util.h"
6 #include "convert.h"
7 #include "environment.h"
8 -#include "streaming.h"
8 #include "repository.h"
9 #include "object-file.h"
10 #include "odb.h"
11 +#include "odb/streaming.h"
12 #include "replace-object.h"
13 #include "packfile.h"
14
odb/streaming.h renamed
packfile.c
+1 -1
@@ -20,7 +20,7 @@
20 #include "tree.h"
21 #include "object-file.h"
22 #include "odb.h"
23 -#include "streaming.h"
23 +#include "odb/streaming.h"
24 #include "midx.h"
25 #include "commit-graph.h"
26 #include "pack-revindex.h"
parallel-checkout.c
+1 -1
@@ -13,7 +13,7 @@
13 #include "read-cache-ll.h"
14 #include "run-command.h"
15 #include "sigchain.h"
16 -#include "streaming.h"
16 +#include "odb/streaming.h"
17 #include "symlinks.h"
18 #include "thread-utils.h"
19 #include "trace2.h"