Merge branch 'en/header-split-cache-h-part-2'
More header clean-up. * en/header-split-cache-h-part-2: (22 commits) reftable: ensure git-compat-util.h is the first (indirect) include diff.h: reduce unnecessary includes object-store.h: reduce unnecessary includes commit.h: reduce unnecessary includes fsmonitor: reduce includes of cache.h cache.h: remove unnecessary headers treewide: remove cache.h inclusion due to previous changes cache,tree: move basic name compare functions from read-cache to tree cache,tree: move cmp_cache_name_compare from tree.[ch] to read-cache.c hash-ll.h: split out of hash.h to remove dependency on repository.h tree-diff.c: move S_DIFFTREE_IFXMIN_NEQ define from cache.h dir.h: move DTYPE defines from cache.h versioncmp.h: move declarations for versioncmp.c functions from cache.h ws.h: move declarations for ws.c functions from cache.h match-trees.h: move declarations for match-trees.c functions from cache.h pkt-line.h: move declarations for pkt-line.c functions from cache.h base85.h: move declarations for base85.c functions from cache.h copy.h: move declarations for copy.c functions from cache.h server-info.h: move declarations for server-info.c functions from cache.h packfile.h: move pack_window and pack_entry from cache.h ...
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
#include "bloom.h"
|
||||
#include "hex.h"
|
||||
#include "commit.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
|
||||
static struct bloom_filter_settings settings = DEFAULT_BLOOM_FILTER_SETTINGS;
|
||||
|
@ -6,6 +6,7 @@
|
||||
#include "tree.h"
|
||||
#include "cache-tree.h"
|
||||
#include "parse-options.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
|
||||
static char const * const test_cache_tree_usage[] = {
|
||||
|
@ -1,9 +1,11 @@
|
||||
#define USE_THE_INDEX_VARIABLE
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "hash.h"
|
||||
#include "hex.h"
|
||||
#include "tree.h"
|
||||
#include "cache-tree.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
|
||||
static void dump_one(struct cache_tree *it, const char *pfx, const char *x)
|
||||
|
@ -1,5 +1,6 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
|
||||
int cmd__dump_fsmonitor(int ac UNUSED, const char **av UNUSED)
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include "cache.h"
|
||||
#include "dir.h"
|
||||
#include "hex.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
|
||||
static int compare_untracked(const void *a_, const void *b_)
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "git-compat-util.h"
|
||||
#include "object.h"
|
||||
#include "decorate.h"
|
||||
#include "repository.h"
|
||||
|
||||
int cmd__example_decorate(int argc UNUSED, const char **argv UNUSED)
|
||||
{
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include "cache.h"
|
||||
#include "parse-options.h"
|
||||
#include "fsmonitor-ipc.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "thread-utils.h"
|
||||
#include "trace2.h"
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include "cache.h"
|
||||
#include "environment.h"
|
||||
#include "parse-options.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "trace.h"
|
||||
|
||||
|
@ -1,7 +1,8 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "hex.h"
|
||||
#include "match-trees.h"
|
||||
#include "object-name.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "tree.h"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "mem-pool.h"
|
||||
#include "mergesort.h"
|
||||
#include "strbuf.h"
|
||||
|
||||
static uint32_t minstd_rand(uint32_t *state)
|
||||
{
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "hex.h"
|
||||
#include "oid-array.h"
|
||||
#include "setup.h"
|
||||
#include "strbuf.h"
|
||||
|
||||
static int print_oid(const struct object_id *oid, void *data)
|
||||
{
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "hex.h"
|
||||
#include "object-name.h"
|
||||
#include "oidmap.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "strbuf.h"
|
||||
#include "string-list.h"
|
||||
|
@ -1,8 +1,8 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "hex.h"
|
||||
#include "oidtree.h"
|
||||
#include "setup.h"
|
||||
#include "strbuf.h"
|
||||
|
||||
static enum cb_next print_oid(const struct object_id *oid, void *data UNUSED)
|
||||
{
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "parse-options.h"
|
||||
#include "strbuf.h"
|
||||
#include "string-list.h"
|
||||
#include "trace2.h"
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "cache.h"
|
||||
#include "abspath.h"
|
||||
#include "environment.h"
|
||||
#include "path.h"
|
||||
#include "setup.h"
|
||||
#include "string-list.h"
|
||||
#include "trace.h"
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "config.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "wrapper.h"
|
||||
|
||||
|
@ -1,10 +1,10 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "hex.h"
|
||||
#include "midx.h"
|
||||
#include "repository.h"
|
||||
#include "object-store.h"
|
||||
#include "pack-bitmap.h"
|
||||
#include "packfile.h"
|
||||
#include "setup.h"
|
||||
|
||||
static int read_midx_file(const char *object_dir, int show_objects)
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "reftable/system.h"
|
||||
#include "reftable/reftable-tests.h"
|
||||
#include "test-tool.h"
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "lockfile.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "tree.h"
|
||||
#include "cache-tree.h"
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "strbuf.h"
|
||||
#include "string-list.h"
|
||||
|
||||
/*
|
||||
|
@ -1,6 +1,8 @@
|
||||
#include "test-tool.h"
|
||||
#include "config.h"
|
||||
#include "hash.h"
|
||||
#include "object-name.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "submodule-config.h"
|
||||
#include "submodule.h"
|
||||
|
@ -1,4 +1,5 @@
|
||||
#include "test-tool.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "submodule-config.h"
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "test-tool-utils.h"
|
||||
#include "parse-options.h"
|
||||
#include "remote.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
#include "submodule-config.h"
|
||||
#include "submodule.h"
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include "run-command.h"
|
||||
#include "exec-cmd.h"
|
||||
#include "config.h"
|
||||
#include "repository.h"
|
||||
#include "trace2.h"
|
||||
|
||||
typedef int(fn_unit_test)(int argc, const char **argv);
|
||||
|
@ -2,6 +2,7 @@
|
||||
#include "test-tool.h"
|
||||
#include "cache.h"
|
||||
#include "lockfile.h"
|
||||
#include "repository.h"
|
||||
#include "setup.h"
|
||||
|
||||
int cmd__write_cache(int argc, const char **argv)
|
||||
|
Reference in New Issue
Block a user