Git fork

treewide: remove unnecessary includes for wrapper.h

Signed-off-by: Calvin Wan <calvinwan@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>

authored by

Calvin Wan and committed by
Junio C Hamano
da9502ff 28aed75a

-74
-1
apply.c
··· 37 37 #include "symlinks.h" 38 38 #include "wildmatch.h" 39 39 #include "ws.h" 40 - #include "wrapper.h" 41 40 42 41 struct gitdiff_data { 43 42 struct strbuf *root;
-1
builtin/am.c
··· 44 44 #include "path.h" 45 45 #include "repository.h" 46 46 #include "pretty.h" 47 - #include "wrapper.h" 48 47 49 48 /** 50 49 * Returns the length of the first line of msg.
-1
builtin/bisect.c
··· 15 15 #include "prompt.h" 16 16 #include "quote.h" 17 17 #include "revision.h" 18 - #include "wrapper.h" 19 18 20 19 static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS") 21 20 static GIT_PATH_FUNC(git_path_bisect_expected_rev, "BISECT_EXPECTED_REV")
-1
builtin/branch.c
··· 28 28 #include "worktree.h" 29 29 #include "help.h" 30 30 #include "commit-reach.h" 31 - #include "wrapper.h" 32 31 33 32 static const char * const builtin_branch_usage[] = { 34 33 N_("git branch [<options>] [-r | -a] [--merged] [--no-merged]"),
-1
builtin/bugreport.c
··· 11 11 #include "diagnose.h" 12 12 #include "object-file.h" 13 13 #include "setup.h" 14 - #include "wrapper.h" 15 14 16 15 static void get_system_info(struct strbuf *sys_info) 17 16 {
-1
builtin/clone.c
··· 45 45 #include "hook.h" 46 46 #include "bundle.h" 47 47 #include "bundle-uri.h" 48 - #include "wrapper.h" 49 48 50 49 /* 51 50 * Overall FIXMEs:
-1
builtin/config.c
··· 15 15 #include "setup.h" 16 16 #include "strbuf.h" 17 17 #include "worktree.h" 18 - #include "wrapper.h" 19 18 20 19 static const char *const builtin_config_usage[] = { 21 20 N_("git config [<options>]"),
-1
builtin/credential-cache.c
··· 3 3 #include "parse-options.h" 4 4 #include "path.h" 5 5 #include "strbuf.h" 6 - #include "wrapper.h" 7 6 #include "write-or-die.h" 8 7 9 8 #ifndef NO_UNIX_SOCKETS
-1
builtin/difftool.c
··· 32 32 #include "dir.h" 33 33 #include "entry.h" 34 34 #include "setup.h" 35 - #include "wrapper.h" 36 35 37 36 static int trust_exit_code; 38 37
-1
builtin/fast-import.c
··· 26 26 #include "commit-reach.h" 27 27 #include "khash.h" 28 28 #include "date.h" 29 - #include "wrapper.h" 30 29 31 30 #define PACK_ID_BITS 16 32 31 #define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)
-1
builtin/fmt-merge-msg.c
··· 3 3 #include "fmt-merge-msg.h" 4 4 #include "gettext.h" 5 5 #include "parse-options.h" 6 - #include "wrapper.h" 7 6 8 7 static const char * const fmt_merge_msg_usage[] = { 9 8 N_("git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] [--file <file>]"),
-1
builtin/gc.c
··· 41 41 #include "hook.h" 42 42 #include "setup.h" 43 43 #include "trace2.h" 44 - #include "wrapper.h" 45 44 46 45 #define FAILED_RUN "failed to run %s" 47 46
-1
builtin/get-tar-commit-id.c
··· 5 5 #include "commit.h" 6 6 #include "tar.h" 7 7 #include "quote.h" 8 - #include "wrapper.h" 9 8 10 9 static const char builtin_get_tar_commit_id_usage[] = 11 10 "git get-tar-commit-id";
-1
builtin/index-pack.c
··· 25 25 #include "replace-object.h" 26 26 #include "promisor-remote.h" 27 27 #include "setup.h" 28 - #include "wrapper.h" 29 28 30 29 static const char index_pack_usage[] = 31 30 "git index-pack [-v] [-o <index-file>] [--keep | --keep=<msg>] [--[no-]rev-index] [--verify] [--strict] (<pack-file> | --stdin [--fix-thin] [<pack-file>])";
-1
builtin/init-db.c
··· 13 13 #include "path.h" 14 14 #include "setup.h" 15 15 #include "strbuf.h" 16 - #include "wrapper.h" 17 16 18 17 static int guess_repository_type(const char *git_dir) 19 18 {
-1
builtin/merge.c
··· 53 53 #include "commit-reach.h" 54 54 #include "wt-status.h" 55 55 #include "commit-graph.h" 56 - #include "wrapper.h" 57 56 58 57 #define DEFAULT_TWOHEAD (1<<0) 59 58 #define DEFAULT_OCTOPUS (1<<1)
-1
builtin/pack-objects.c
··· 43 43 #include "promisor-remote.h" 44 44 #include "pack-mtimes.h" 45 45 #include "parse-options.h" 46 - #include "wrapper.h" 47 46 48 47 /* 49 48 * Objects we are going to pack are collected in the `to_pack` structure.
-1
builtin/rebase.c
··· 37 37 #include "reset.h" 38 38 #include "trace2.h" 39 39 #include "hook.h" 40 - #include "wrapper.h" 41 40 42 41 static char const * const builtin_rebase_usage[] = { 43 42 N_("git rebase [-i] [options] [--exec <cmd>] "
-1
builtin/receive-pack.c
··· 40 40 #include "worktree.h" 41 41 #include "shallow.h" 42 42 #include "parse-options.h" 43 - #include "wrapper.h" 44 43 45 44 static const char * const receive_pack_usage[] = { 46 45 N_("git receive-pack <git-dir>"),
-1
builtin/rerere.c
··· 6 6 #include "repository.h" 7 7 #include "string-list.h" 8 8 #include "rerere.h" 9 - #include "wrapper.h" 10 9 #include "xdiff/xdiff.h" 11 10 #include "xdiff-interface.h" 12 11 #include "pathspec.h"
-1
builtin/unpack-file.c
··· 3 3 #include "hex.h" 4 4 #include "object-name.h" 5 5 #include "object-store-ll.h" 6 - #include "wrapper.h" 7 6 8 7 static char *create_temp_file(struct object_id *oid) 9 8 {
-1
builtin/worktree.c
··· 24 24 #include "submodule.h" 25 25 #include "utf8.h" 26 26 #include "worktree.h" 27 - #include "wrapper.h" 28 27 #include "quote.h" 29 28 30 29 #define BUILTIN_WORKTREE_ADD_USAGE \
-1
bulk-checkin.c
··· 17 17 #include "packfile.h" 18 18 #include "object-file.h" 19 19 #include "object-store-ll.h" 20 - #include "wrapper.h" 21 20 22 21 static int odb_transaction_nesting; 23 22
-1
combine-diff.c
··· 17 17 #include "userdiff.h" 18 18 #include "oid-array.h" 19 19 #include "revision.h" 20 - #include "wrapper.h" 21 20 22 21 static int compare_paths(const struct combine_diff_path *one, 23 22 const struct diff_filespec *two)
-1
commit-graph.c
··· 26 26 #include "trace2.h" 27 27 #include "tree.h" 28 28 #include "chunk-format.h" 29 - #include "wrapper.h" 30 29 31 30 void git_test_write_commit_graph_or_die(void) 32 31 {
-1
compat/terminal.c
··· 6 6 #include "run-command.h" 7 7 #include "string-list.h" 8 8 #include "hashmap.h" 9 - #include "wrapper.h" 10 9 11 10 #if defined(HAVE_DEV_TTY) || defined(GIT_WINDOWS_NATIVE) 12 11
-1
config.c
··· 39 39 #include "wildmatch.h" 40 40 #include "worktree.h" 41 41 #include "ws.h" 42 - #include "wrapper.h" 43 42 #include "write-or-die.h" 44 43 45 44 struct config_source {
-1
convert.c
··· 16 16 #include "trace.h" 17 17 #include "utf8.h" 18 18 #include "merge-ll.h" 19 - #include "wrapper.h" 20 19 21 20 /* 22 21 * convert.c - convert a file when checking it out and checking it in.
-1
copy.c
··· 1 1 #include "git-compat-util.h" 2 2 #include "copy.h" 3 3 #include "path.h" 4 - #include "wrapper.h" 5 4 6 5 int copy_fd(int ifd, int ofd) 7 6 {
-1
csum-file.c
··· 11 11 #include "progress.h" 12 12 #include "csum-file.h" 13 13 #include "hash.h" 14 - #include "wrapper.h" 15 14 16 15 static void verify_buffer_or_die(struct hashfile *f, 17 16 const void *buf,
-1
daemon.c
··· 10 10 #include "setup.h" 11 11 #include "strbuf.h" 12 12 #include "string-list.h" 13 - #include "wrapper.h" 14 13 15 14 #ifdef NO_INITGROUPS 16 15 #define initgroups(x, y) (0) /* nothing */
-1
diff.c
··· 43 43 #include "setup.h" 44 44 #include "strmap.h" 45 45 #include "ws.h" 46 - #include "wrapper.h" 47 46 48 47 #ifdef NO_FAST_WORKING_DIRECTORY 49 48 #define FAST_WORKING_DIRECTORY 0
-1
dir.c
··· 32 32 #include "symlinks.h" 33 33 #include "trace2.h" 34 34 #include "tree.h" 35 - #include "wrapper.h" 36 35 37 36 /* 38 37 * Tells read_directory_recursive how a file or directory should be treated.
-1
editor.c
··· 11 11 #include "strvec.h" 12 12 #include "run-command.h" 13 13 #include "sigchain.h" 14 - #include "wrapper.h" 15 14 16 15 #ifndef DEFAULT_EDITOR 17 16 #define DEFAULT_EDITOR "vi"
-1
entry.c
··· 14 14 #include "fsmonitor.h" 15 15 #include "entry.h" 16 16 #include "parallel-checkout.h" 17 - #include "wrapper.h" 18 17 19 18 static void create_directories(const char *path, int path_len, 20 19 const struct checkout *state)
-1
environment.c
··· 28 28 #include "setup.h" 29 29 #include "shallow.h" 30 30 #include "trace.h" 31 - #include "wrapper.h" 32 31 #include "write-or-die.h" 33 32 34 33 int trust_executable_bit = 1;
-1
fetch-pack.c
··· 34 34 #include "commit-graph.h" 35 35 #include "sigchain.h" 36 36 #include "mergesort.h" 37 - #include "wrapper.h" 38 37 39 38 static int transfer_unpack_limit = -1; 40 39 static int fetch_unpack_limit = -1;
-1
gpg-interface.c
··· 12 12 #include "sigchain.h" 13 13 #include "tempfile.h" 14 14 #include "alias.h" 15 - #include "wrapper.h" 16 15 17 16 static int git_gpg_config(const char *, const char *, void *); 18 17
-1
grep.c
··· 12 12 #include "commit.h" 13 13 #include "quote.h" 14 14 #include "help.h" 15 - #include "wrapper.h" 16 15 17 16 static int grep_source_load(struct grep_source *gs); 18 17 static int grep_source_is_binary(struct grep_source *gs,
-1
http-backend.c
··· 19 19 #include "object-store-ll.h" 20 20 #include "protocol.h" 21 21 #include "date.h" 22 - #include "wrapper.h" 23 22 #include "write-or-die.h" 24 23 25 24 static const char content_type[] = "Content-Type";
-1
imap-send.c
··· 30 30 #include "parse-options.h" 31 31 #include "setup.h" 32 32 #include "strbuf.h" 33 - #include "wrapper.h" 34 33 #if defined(NO_OPENSSL) && !defined(HAVE_OPENSSL_CSPRNG) 35 34 typedef void *SSL; 36 35 #endif
-1
merge-ll.c
··· 13 13 #include "merge-ll.h" 14 14 #include "quote.h" 15 15 #include "strbuf.h" 16 - #include "wrapper.h" 17 16 18 17 struct ll_merge_driver; 19 18
-1
merge-recursive.c
··· 38 38 #include "tag.h" 39 39 #include "tree-walk.h" 40 40 #include "unpack-trees.h" 41 - #include "wrapper.h" 42 41 #include "xdiff-interface.h" 43 42 44 43 struct merge_options_internal {
-1
notes-merge.c
··· 20 20 #include "trace.h" 21 21 #include "notes-utils.h" 22 22 #include "commit-reach.h" 23 - #include "wrapper.h" 24 23 25 24 struct notes_merge_pair { 26 25 struct object_id obj, base, local, remote;
-1
object-file.c
··· 44 44 #include "setup.h" 45 45 #include "submodule.h" 46 46 #include "fsck.h" 47 - #include "wrapper.h" 48 47 49 48 /* The maximum size for an object header. */ 50 49 #define MAX_HEADER_LEN 32
-1
pack-write.c
··· 12 12 #include "pack-revindex.h" 13 13 #include "path.h" 14 14 #include "strbuf.h" 15 - #include "wrapper.h" 16 15 17 16 void reset_pack_idx_option(struct pack_idx_option *opts) 18 17 {
-1
packfile.c
··· 24 24 #include "commit-graph.h" 25 25 #include "pack-revindex.h" 26 26 #include "promisor-remote.h" 27 - #include "wrapper.h" 28 27 29 28 char *odb_pack_name(struct strbuf *buf, 30 29 const unsigned char *hash,
-1
parallel-checkout.c
··· 15 15 #include "symlinks.h" 16 16 #include "thread-utils.h" 17 17 #include "trace2.h" 18 - #include "wrapper.h" 19 18 20 19 struct pc_worker { 21 20 struct child_process cp;
-1
path.c
··· 18 18 #include "object-store-ll.h" 19 19 #include "lockfile.h" 20 20 #include "exec-cmd.h" 21 - #include "wrapper.h" 22 21 23 22 static int get_st_mode_bits(const char *path, int *mode) 24 23 {
-1
pkt-line.c
··· 5 5 #include "hex.h" 6 6 #include "run-command.h" 7 7 #include "trace.h" 8 - #include "wrapper.h" 9 8 #include "write-or-die.h" 10 9 11 10 char packet_buffer[LARGE_PACKET_MAX];
-1
read-cache.c
··· 46 46 #include "csum-file.h" 47 47 #include "promisor-remote.h" 48 48 #include "hook.h" 49 - #include "wrapper.h" 50 49 51 50 /* Mask for the name length in ce_flags in the on-disk index */ 52 51
-1
rebase-interactive.c
··· 11 11 #include "config.h" 12 12 #include "dir.h" 13 13 #include "object-name.h" 14 - #include "wrapper.h" 15 14 16 15 static const char edit_todo_list_advice[] = 17 16 N_("You can fix this with 'git rebase --edit-todo' "
-1
refs.c
··· 30 30 #include "date.h" 31 31 #include "commit.h" 32 32 #include "wildmatch.h" 33 - #include "wrapper.h" 34 33 35 34 /* 36 35 * List of all available backends
-1
rerere.c
··· 20 20 #include "object-store-ll.h" 21 21 #include "hash-lookup.h" 22 22 #include "strmap.h" 23 - #include "wrapper.h" 24 23 25 24 #define RESOLVED 0 26 25 #define PUNTED 1
-1
send-pack.c
··· 15 15 #include "quote.h" 16 16 #include "transport.h" 17 17 #include "version.h" 18 - #include "wrapper.h" 19 18 #include "oid-array.h" 20 19 #include "gpg-interface.h" 21 20 #include "shallow.h"
-1
sequencer.c
··· 49 49 #include "rebase-interactive.h" 50 50 #include "reset.h" 51 51 #include "branch.h" 52 - #include "wrapper.h" 53 52 54 53 #define GIT_REFLOG_ACTION "GIT_REFLOG_ACTION" 55 54
-1
server-info.c
··· 14 14 #include "object-store-ll.h" 15 15 #include "server-info.h" 16 16 #include "strbuf.h" 17 - #include "wrapper.h" 18 17 19 18 struct update_info_ctx { 20 19 FILE *cur_fp;
-1
setup.c
··· 17 17 #include "quote.h" 18 18 #include "trace2.h" 19 19 #include "worktree.h" 20 - #include "wrapper.h" 21 20 22 21 static int inside_git_dir = -1; 23 22 static int inside_work_tree = -1;
-1
shallow.c
··· 20 20 #include "shallow.h" 21 21 #include "statinfo.h" 22 22 #include "trace.h" 23 - #include "wrapper.h" 24 23 25 24 void set_alternate_shallow_file(struct repository *r, const char *path, int override) 26 25 {
-1
strbuf.c
··· 11 11 #include "string-list.h" 12 12 #include "utf8.h" 13 13 #include "date.h" 14 - #include "wrapper.h" 15 14 16 15 int starts_with(const char *str, const char *prefix) 17 16 {
-1
streaming.c
··· 10 10 #include "object-store-ll.h" 11 11 #include "replace-object.h" 12 12 #include "packfile.h" 13 - #include "wrapper.h" 14 13 15 14 typedef int (*open_istream_fn)(struct git_istream *, 16 15 struct repository *,
-1
t/helper/test-delta.c
··· 11 11 #include "test-tool.h" 12 12 #include "git-compat-util.h" 13 13 #include "delta.h" 14 - #include "wrapper.h" 15 14 16 15 static const char usage_str[] = 17 16 "test-tool delta (-d|-p) <from_file> <data_file> <out_file>";
-1
t/helper/test-fsmonitor-client.c
··· 11 11 #include "setup.h" 12 12 #include "thread-utils.h" 13 13 #include "trace2.h" 14 - #include "wrapper.h" 15 14 16 15 #ifndef HAVE_FSMONITOR_DAEMON_BACKEND 17 16 int cmd__fsmonitor_client(int argc UNUSED, const char **argv UNUSED)
-1
t/helper/test-read-cache.c
··· 4 4 #include "read-cache-ll.h" 5 5 #include "repository.h" 6 6 #include "setup.h" 7 - #include "wrapper.h" 8 7 9 8 int cmd__read_cache(int argc, const char **argv) 10 9 {
-1
tag.c
··· 10 10 #include "gpg-interface.h" 11 11 #include "hex.h" 12 12 #include "packfile.h" 13 - #include "wrapper.h" 14 13 15 14 const char *tag_type = "tag"; 16 15
-1
tempfile.c
··· 46 46 #include "path.h" 47 47 #include "tempfile.h" 48 48 #include "sigchain.h" 49 - #include "wrapper.h" 50 49 51 50 static VOLATILE_LIST_HEAD(tempfile_list); 52 51
-1
trace.c
··· 27 27 #include "quote.h" 28 28 #include "setup.h" 29 29 #include "trace.h" 30 - #include "wrapper.h" 31 30 32 31 struct trace_key trace_default_key = { "GIT_TRACE", 0, 0, 0 }; 33 32 struct trace_key trace_perf_key = TRACE_KEY_INIT(PERFORMANCE);
-1
transport-helper.c
··· 19 19 #include "refspec.h" 20 20 #include "transport-internal.h" 21 21 #include "protocol.h" 22 - #include "wrapper.h" 23 22 24 23 static int debug; 25 24
-1
transport.c
··· 30 30 #include "object-store-ll.h" 31 31 #include "color.h" 32 32 #include "bundle-uri.h" 33 - #include "wrapper.h" 34 33 35 34 static int transport_use_color = -1; 36 35 static char transport_colors[][COLOR_MAXLEN] = {
-1
upload-pack.c
··· 32 32 #include "commit-graph.h" 33 33 #include "commit-reach.h" 34 34 #include "shallow.h" 35 - #include "wrapper.h" 36 35 #include "write-or-die.h" 37 36 38 37 /* Remember to update object flag allocation in object.h */
-1
usage.c
··· 6 6 #include "git-compat-util.h" 7 7 #include "gettext.h" 8 8 #include "trace2.h" 9 - #include "wrapper.h" 10 9 11 10 static void vreportf(const char *prefix, const char *err, va_list params) 12 11 {
-1
worktree.c
··· 12 12 #include "dir.h" 13 13 #include "wt-status.h" 14 14 #include "config.h" 15 - #include "wrapper.h" 16 15 17 16 void free_worktrees(struct worktree **worktrees) 18 17 {
-1
wrapper.c
··· 9 9 #include "repository.h" 10 10 #include "strbuf.h" 11 11 #include "trace2.h" 12 - #include "wrapper.h" 13 12 14 13 static intmax_t count_fsync_writeout_only; 15 14 static intmax_t count_fsync_hardware_flush;
-1
write-or-die.c
··· 1 1 #include "git-compat-util.h" 2 2 #include "config.h" 3 3 #include "run-command.h" 4 - #include "wrapper.h" 5 4 #include "write-or-die.h" 6 5 7 6 /*