object-store: rename files to "odb.{c,h}"

In the preceding commits we have renamed the structures contained in
"object-store.h" to `struct object_database` and `struct odb_backend`.
As such, the code files "object-store.{c,h}" are confusingly named now.
Rename them to "odb.{c,h}" accordingly.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Patrick Steinhardt
2025-07-01 14:22:15 +02:00
committed by Junio C Hamano
parent a1e2581a1e
commit 8f49151763
126 changed files with 129 additions and 129 deletions

View File

@@ -1085,8 +1085,8 @@ LIB_OBJS += notes.o
LIB_OBJS += object-file-convert.o
LIB_OBJS += object-file.o
LIB_OBJS += object-name.o
LIB_OBJS += object-store.o
LIB_OBJS += object.o
LIB_OBJS += odb.o
LIB_OBJS += oid-array.o
LIB_OBJS += oidmap.o
LIB_OBJS += oidset.o

View File

@@ -14,7 +14,7 @@
#include "abspath.h"
#include "base85.h"
#include "config.h"
#include "object-store.h"
#include "odb.h"
#include "delta.h"
#include "diff.h"
#include "dir.h"

View File

@@ -11,7 +11,7 @@
#include "hex.h"
#include "tar.h"
#include "archive.h"
#include "object-store.h"
#include "odb.h"
#include "strbuf.h"
#include "streaming.h"
#include "run-command.h"

View File

@@ -12,7 +12,7 @@
#include "hex.h"
#include "streaming.h"
#include "utf8.h"
#include "object-store.h"
#include "odb.h"
#include "strbuf.h"
#include "userdiff.h"
#include "write-or-die.h"

View File

@@ -14,7 +14,7 @@
#include "pretty.h"
#include "setup.h"
#include "refs.h"
#include "object-store.h"
#include "odb.h"
#include "commit.h"
#include "tree.h"
#include "tree-walk.h"

2
attr.c
View File

@@ -22,7 +22,7 @@
#include "read-cache-ll.h"
#include "refs.h"
#include "revision.h"
#include "object-store.h"
#include "odb.h"
#include "setup.h"
#include "thread-utils.h"
#include "tree-walk.h"

View File

@@ -20,7 +20,7 @@
#include "commit-slab.h"
#include "commit-reach.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "dir.h"

View File

@@ -3,7 +3,7 @@
#include "git-compat-util.h"
#include "refs.h"
#include "object-store.h"
#include "odb.h"
#include "cache-tree.h"
#include "mergesort.h"
#include "commit.h"

View File

@@ -13,7 +13,7 @@
#include "tree.h"
#include "tree-walk.h"
#include "object.h"
#include "object-store.h"
#include "odb.h"
#include "oid-array.h"
#include "oidset.h"
#include "promisor-remote.h"

View File

@@ -28,7 +28,7 @@
#include "line-log.h"
#include "progress.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "pager.h"
#include "blame.h"
#include "refs.h"

View File

@@ -24,7 +24,7 @@
#include "pack-bitmap.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "replace-object.h"
#include "promisor-remote.h"
#include "mailmap.h"

View File

@@ -20,7 +20,7 @@
#include "merge-ort-wrappers.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "parse-options.h"
#include "path.h"
#include "preload-index.h"

View File

@@ -25,7 +25,7 @@
#include "refs.h"
#include "refspec.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "tree.h"
#include "tree-walk.h"
#include "unpack-trees.h"

View File

@@ -6,7 +6,7 @@
#include "hex.h"
#include "parse-options.h"
#include "commit-graph.h"
#include "object-store.h"
#include "odb.h"
#include "progress.h"
#include "replace-object.h"
#include "strbuf.h"

View File

@@ -9,7 +9,7 @@
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "commit.h"
#include "parse-options.h"

View File

@@ -19,7 +19,7 @@
#include "setup.h"
#include "strvec.h"
#include "run-command.h"
#include "object-store.h"
#include "odb.h"
#include "list-objects.h"
#include "commit-slab.h"
#include "wildmatch.h"

View File

@@ -30,7 +30,7 @@
#include "strbuf.h"
#include "lockfile.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "dir.h"
#include "entry.h"
#include "setup.h"

View File

@@ -14,7 +14,7 @@
#include "refs.h"
#include "refspec.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "commit.h"
#include "object.h"
#include "tag.h"

View File

@@ -24,7 +24,7 @@
#include "packfile.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "mem-pool.h"
#include "commit-reach.h"
#include "khash.h"

View File

@@ -14,7 +14,7 @@
#include "refs.h"
#include "refspec.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "oidset.h"
#include "oid-array.h"
#include "commit.h"

View File

@@ -17,7 +17,7 @@
#include "packfile.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "read-cache-ll.h"
#include "replace-object.h"

View File

@@ -26,7 +26,7 @@
#include "submodule-config.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "packfile.h"
#include "pager.h"
#include "path.h"

View File

@@ -11,7 +11,7 @@
#include "gettext.h"
#include "hex.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "blob.h"
#include "quote.h"
#include "parse-options.h"

View File

@@ -21,7 +21,7 @@
#include "packfile.h"
#include "pack-revindex.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "oid-array.h"
#include "oidset.h"
#include "path.h"

View File

@@ -15,7 +15,7 @@
#include "hex.h"
#include "refs.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "pager.h"
#include "color.h"
#include "commit.h"

View File

@@ -25,7 +25,7 @@
#include "setup.h"
#include "sparse-index.h"
#include "submodule.h"
#include "object-store.h"
#include "odb.h"
#include "hex.h"

View File

@@ -10,7 +10,7 @@
#include "gettext.h"
#include "hex.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "tree.h"
#include "path.h"
#include "quote.h"

View File

@@ -7,7 +7,7 @@
#include "hex.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "config.h"
#include "gettext.h"
#include "setup.h"

View File

@@ -10,7 +10,7 @@
#include "commit-reach.h"
#include "merge-ort.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "parse-options.h"
#include "blob.h"
#include "merge-blobs.h"

View File

@@ -6,7 +6,7 @@
#include "strbuf.h"
#include "replace-object.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "fsck.h"
#include "config.h"

View File

@@ -12,7 +12,7 @@
#include "tree.h"
#include "parse-options.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
static struct treeent {
unsigned mode;

View File

@@ -7,7 +7,7 @@
#include "midx.h"
#include "strbuf.h"
#include "trace2.h"
#include "object-store.h"
#include "odb.h"
#include "replace-object.h"
#include "repository.h"

View File

@@ -16,7 +16,7 @@
#include "notes.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "pretty.h"

View File

@@ -32,7 +32,7 @@
#include "list.h"
#include "packfile.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "replace-object.h"
#include "dir.h"
#include "midx.h"

View File

@@ -13,7 +13,7 @@
#include "hex.h"
#include "packfile.h"
#include "object-store.h"
#include "odb.h"
#include "strbuf.h"
#define BLKSIZE 512

View File

@@ -17,7 +17,7 @@
#include "replace-object.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "shallow.h"
static const char * const prune_usage[] = {

View File

@@ -33,7 +33,7 @@
#include "packfile.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "protocol.h"
#include "commit-reach.h"

View File

@@ -14,7 +14,7 @@
#include "rebase.h"
#include "refs.h"
#include "refspec.h"
#include "object-store.h"
#include "odb.h"
#include "strvec.h"
#include "commit-reach.h"
#include "progress.h"

View File

@@ -17,7 +17,7 @@
#include "midx.h"
#include "packfile.h"
#include "prune-packed.h"
#include "object-store.h"
#include "odb.h"
#include "promisor-remote.h"
#include "shallow.h"
#include "pack.h"

View File

@@ -19,7 +19,7 @@
#include "run-command.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "replace-object.h"
#include "tag.h"
#include "wildmatch.h"

View File

@@ -14,7 +14,7 @@
#include "object.h"
#include "object-name.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "pack-bitmap.h"
#include "parse-options.h"
#include "log-tree.h"

View File

@@ -5,7 +5,7 @@
#include "hex.h"
#include "refs/refs-internal.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "object.h"
#include "string-list.h"
#include "parse-options.h"

View File

@@ -28,7 +28,7 @@
#include "diff.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "advice.h"
#include "branch.h"
#include "list-objects-filter-options.h"

View File

@@ -19,7 +19,7 @@
#include "refs.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "tag.h"
#include "parse-options.h"

View File

@@ -4,7 +4,7 @@
#include "hex.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
static char *create_temp_file(struct object_id *oid)
{

View File

@@ -9,7 +9,7 @@
#include "git-zlib.h"
#include "hex.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "object.h"
#include "delta.h"
#include "pack.h"

View File

@@ -17,7 +17,7 @@
#include "tmp-objdir.h"
#include "packfile.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
static int odb_transaction_nesting;

View File

@@ -14,7 +14,7 @@
#include "fetch-pack.h"
#include "remote.h"
#include "trace2.h"
#include "object-store.h"
#include "odb.h"
static struct {
enum bundle_list_heuristic heuristic;

View File

@@ -7,7 +7,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "odb.h"
#include "repository.h"
#include "object.h"
#include "commit.h"

View File

@@ -10,7 +10,7 @@
#include "cache-tree.h"
#include "bulk-checkin.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "read-cache-ll.h"
#include "replace-object.h"
#include "repository.h"

View File

@@ -2,7 +2,7 @@
#define DISABLE_SIGN_COMPARE_WARNINGS
#include "git-compat-util.h"
#include "object-store.h"
#include "odb.h"
#include "commit.h"
#include "convert.h"
#include "diff.h"

View File

@@ -13,7 +13,7 @@
#include "refs.h"
#include "hash-lookup.h"
#include "commit-graph.h"
#include "object-store.h"
#include "odb.h"
#include "oid-array.h"
#include "path.h"
#include "alloc.h"

View File

@@ -1,7 +1,7 @@
#ifndef COMMIT_GRAPH_H
#define COMMIT_GRAPH_H
#include "object-store.h"
#include "odb.h"
#include "oidset.h"
#define GIT_TEST_COMMIT_GRAPH "GIT_TEST_COMMIT_GRAPH"

View File

@@ -9,7 +9,7 @@
#include "hex.h"
#include "repository.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "utf8.h"
#include "diff.h"
#include "revision.h"

View File

@@ -31,7 +31,7 @@
#include "hashmap.h"
#include "string-list.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "pager.h"
#include "path.h"
#include "utf8.h"

View File

@@ -3,7 +3,7 @@
#include "git-compat-util.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "odb.h"
#include "run-command.h"
#include "sigchain.h"
#include "connected.h"

View File

@@ -77,7 +77,7 @@
|
- diff_setup
+ repo_diff_setup
// object-store.h
// odb.h
|
- read_object_file
+ repo_read_object_file

View File

@@ -7,7 +7,7 @@
#include "gettext.h"
#include "hex.h"
#include "strvec.h"
#include "object-store.h"
#include "odb.h"
#include "packfile.h"
#include "parse-options.h"
#include "repository.h"

2
diff.c
View File

@@ -23,7 +23,7 @@
#include "color.h"
#include "run-command.h"
#include "utf8.h"
#include "object-store.h"
#include "odb.h"
#include "userdiff.h"
#include "submodule.h"
#include "hashmap.h"

View File

@@ -1,7 +1,7 @@
#define USE_THE_REPOSITORY_VARIABLE
#include "git-compat-util.h"
#include "object-store.h"
#include "odb.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"

View File

@@ -24,7 +24,7 @@
#include "oid-array.h"
#include "oidset.h"
#include "packfile.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "connected.h"
#include "fetch-negotiator.h"

View File

@@ -6,7 +6,7 @@
#include "environment.h"
#include "refs.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "diff.h"
#include "diff-merges.h"
#include "hex.h"

2
fsck.c
View File

@@ -4,7 +4,7 @@
#include "date.h"
#include "dir.h"
#include "hex.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "repository.h"
#include "object.h"

2
grep.c
View File

@@ -5,7 +5,7 @@
#include "gettext.h"
#include "grep.h"
#include "hex.h"
#include "object-store.h"
#include "odb.h"
#include "pretty.h"
#include "userdiff.h"
#include "xdiff-interface.h"

View File

@@ -18,7 +18,7 @@
#include "url.h"
#include "strvec.h"
#include "packfile.h"
#include "object-store.h"
#include "odb.h"
#include "protocol.h"
#include "date.h"
#include "write-or-die.h"

View File

@@ -20,7 +20,7 @@
#include "url.h"
#include "packfile.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "commit-reach.h"
#ifdef EXPAT_NEEDS_XMLPARSE_H

View File

@@ -10,7 +10,7 @@
#include "transport.h"
#include "packfile.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
struct alt_base {
char *base;

2
http.c
View File

@@ -19,7 +19,7 @@
#include "packfile.h"
#include "string-list.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "tempfile.h"
static struct trace_key trace_curl = TRACE_KEY_INIT(CURL);

View File

@@ -12,7 +12,7 @@
#include "oidmap.h"
#include "oidset.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
/* Remember to update object flag allocation in object.h */
/*

View File

@@ -14,7 +14,7 @@
#include "list-objects-filter.h"
#include "list-objects-filter-options.h"
#include "packfile.h"
#include "object-store.h"
#include "odb.h"
#include "trace.h"
#include "environment.h"

View File

@@ -1,7 +1,7 @@
#include "git-compat-util.h"
#include "hash.h"
#include "path.h"
#include "object-store.h"
#include "odb.h"
#include "hex.h"
#include "repository.h"
#include "wrapper.h"

View File

@@ -6,7 +6,7 @@
#include "string-list.h"
#include "mailmap.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "setup.h"
char *git_mailmap_file;

View File

@@ -7,7 +7,7 @@
#include "tree.h"
#include "tree-walk.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "repository.h"
static int score_missing(unsigned mode)

View File

@@ -4,7 +4,7 @@
#include "merge-ll.h"
#include "blob.h"
#include "merge-blobs.h"
#include "object-store.h"
#include "odb.h"
static int fill_mmfile_blob(mmfile_t *f, struct blob *obj)
{

View File

@@ -39,7 +39,7 @@
#include "mem-pool.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "oid-array.h"
#include "path.h"
#include "promisor-remote.h"

View File

@@ -396,8 +396,8 @@ libgit_sources = [
'object-file-convert.c',
'object-file.c',
'object-name.c',
'object-store.c',
'object.c',
'odb.c',
'oid-array.c',
'oidmap.c',
'oidset.c',

View File

@@ -3,7 +3,7 @@
#include "git-compat-util.h"
#include "notes-cache.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "pretty.h"
#include "repository.h"
#include "commit.h"

View File

@@ -8,7 +8,7 @@
#include "refs.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "repository.h"
#include "diff.h"

View File

@@ -8,7 +8,7 @@
#include "notes.h"
#include "object-file.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "utf8.h"
#include "strbuf.h"
#include "tree-walk.h"

View File

@@ -21,7 +21,7 @@
#include "loose.h"
#include "object-file-convert.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "oidtree.h"
#include "pack.h"
#include "packfile.h"

View File

@@ -3,7 +3,7 @@
#include "git-zlib.h"
#include "object.h"
#include "object-store.h"
#include "odb.h"
struct index_state;

View File

@@ -13,7 +13,7 @@
#include "loose.h"
#include "object-file-convert.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "packfile.h"
#include "path.h"
#include "promisor-remote.h"

View File

@@ -1,5 +1,5 @@
#ifndef OBJECT_STORE_H
#define OBJECT_STORE_H
#ifndef ODB_H
#define ODB_H
#include "hashmap.h"
#include "object.h"
@@ -352,4 +352,4 @@ void *read_object_with_reference(struct repository *r,
unsigned long *size,
struct object_id *oid_ret);
#endif /* OBJECT_STORE_H */
#endif /* ODB_H */

View File

@@ -1,5 +1,5 @@
#include "git-compat-util.h"
#include "object-store.h"
#include "odb.h"
#include "packfile.h"
int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size);

View File

@@ -4,7 +4,7 @@
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "odb.h"
#include "commit.h"
#include "diff.h"
#include "revision.h"

View File

@@ -17,7 +17,7 @@
#include "packfile.h"
#include "repository.h"
#include "trace2.h"
#include "object-store.h"
#include "odb.h"
#include "list-objects-filter-options.h"
#include "midx.h"
#include "config.h"

View File

@@ -8,7 +8,7 @@
#include "progress.h"
#include "packfile.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
struct idx_entry {
off_t offset;

View File

@@ -1,7 +1,7 @@
#include "git-compat-util.h"
#include "gettext.h"
#include "pack-mtimes.h"
#include "object-store.h"
#include "odb.h"
#include "packfile.h"
#include "strbuf.h"

View File

@@ -1,7 +1,7 @@
#ifndef PACK_OBJECTS_H
#define PACK_OBJECTS_H
#include "object-store.h"
#include "odb.h"
#include "thread-utils.h"
#include "pack.h"
#include "packfile.h"

View File

@@ -1,7 +1,7 @@
#include "git-compat-util.h"
#include "gettext.h"
#include "pack-revindex.h"
#include "object-store.h"
#include "odb.h"
#include "packfile.h"
#include "strbuf.h"
#include "trace2.h"

View File

@@ -19,7 +19,7 @@
#include "tree-walk.h"
#include "tree.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "midx.h"
#include "commit-graph.h"
#include "pack-revindex.h"

View File

@@ -3,10 +3,10 @@
#include "list.h"
#include "object.h"
#include "object-store.h"
#include "odb.h"
#include "oidset.h"
/* in object-store.h */
/* in odb.h */
struct object_info;
struct packed_git {

2
path.c
View File

@@ -15,7 +15,7 @@
#include "submodule-config.h"
#include "path.h"
#include "packfile.h"
#include "object-store.h"
#include "odb.h"
#include "lockfile.h"
#include "exec-cmd.h"

View File

@@ -3,7 +3,7 @@
#include "git-compat-util.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "odb.h"
#include "promisor-remote.h"
#include "config.h"
#include "trace2.h"

View File

@@ -6,7 +6,7 @@
#include "hash.h"
#include "hex.h"
#include "object.h"
#include "object-store.h"
#include "odb.h"
#include "repository.h"
#include "string-list.h"
#include "strbuf.h"

View File

@@ -20,7 +20,7 @@
#include "refs.h"
#include "dir.h"
#include "object-file.h"
#include "object-store.h"
#include "odb.h"
#include "oid-array.h"
#include "tree.h"
#include "commit.h"

View File

@@ -12,7 +12,7 @@
#include "refs.h"
#include "wildmatch.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "oid-array.h"
#include "repo-settings.h"
#include "repository.h"

View File

@@ -5,7 +5,7 @@
#include "config.h"
#include "gettext.h"
#include "parse-options.h"
#include "object-store.h"
#include "odb.h"
#include "reflog.h"
#include "refs.h"
#include "revision.h"

2
refs.c
View File

@@ -19,7 +19,7 @@
#include "run-command.h"
#include "hook.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "object.h"
#include "path.h"
#include "submodule.h"

View File

@@ -12,7 +12,7 @@
#include "refs.h"
#include "refspec.h"
#include "object-name.h"
#include "object-store.h"
#include "odb.h"
#include "path.h"
#include "commit.h"
#include "diff.h"

Some files were not shown because too many files have changed in this diff Show More