Merge branch 'en/header-split-cleanup'

Split key function and data structure definitions out of cache.h to
new header files and adjust the users.

* en/header-split-cleanup:
  csum-file.h: remove unnecessary inclusion of cache.h
  write-or-die.h: move declarations for write-or-die.c functions from cache.h
  treewide: remove cache.h inclusion due to setup.h changes
  setup.h: move declarations for setup.c functions from cache.h
  treewide: remove cache.h inclusion due to environment.h changes
  environment.h: move declarations for environment.c functions from cache.h
  treewide: remove unnecessary includes of cache.h
  wrapper.h: move declarations for wrapper.c functions from cache.h
  path.h: move function declarations for path.c functions from cache.h
  cache.h: remove expand_user_path()
  abspath.h: move absolute path functions from cache.h
  environment: move comment_line_char from cache.h
  treewide: remove unnecessary cache.h inclusion from several sources
  treewide: remove unnecessary inclusion of gettext.h
  treewide: be explicit about dependence on gettext.h
  treewide: remove unnecessary cache.h inclusion from a few headers
This commit is contained in:
Junio C Hamano 2023-04-06 13:38:31 -07:00
commit 6047b28eb7
340 changed files with 1311 additions and 669 deletions

View File

@ -1,4 +1,6 @@
#include "cache.h"
#include "git-compat-util.h"
#include "abspath.h"
#include "strbuf.h"
/*
* Do not use this for inspecting *tracked* content. When path is a

33
abspath.h Normal file
View File

@ -0,0 +1,33 @@
#ifndef ABSPATH_H
#define ABSPATH_H
int is_directory(const char *);
char *strbuf_realpath(struct strbuf *resolved, const char *path,
int die_on_error);
char *strbuf_realpath_forgiving(struct strbuf *resolved, const char *path,
int die_on_error);
char *real_pathdup(const char *path, int die_on_error);
const char *absolute_path(const char *path);
char *absolute_pathdup(const char *path);
/*
* Concatenate "prefix" (if len is non-zero) and "path", with no
* connecting characters (so "prefix" should end with a "/").
* Unlike prefix_path, this should be used if the named file does
* not have to interact with index entry; i.e. name of a random file
* on the filesystem.
*
* The return value is always a newly allocated string (even if the
* prefix was empty).
*/
char *prefix_filename(const char *prefix, const char *path);
/* Likewise, but path=="-" always yields "-" */
char *prefix_filename_except_for_dash(const char *prefix, const char *path);
static inline int is_absolute_path(const char *path)
{
return is_dir_sep(path[0]) || has_dos_drive_prefix(path);
}
#endif /* ABSPATH_H */

View File

@ -3,6 +3,7 @@
#include "color.h"
#include "config.h"
#include "diffcore.h"
#include "gettext.h"
#include "hex.h"
#include "revision.h"
#include "refs.h"

View File

@ -1,6 +1,8 @@
#include "cache.h"
#include "add-interactive.h"
#include "alloc.h"
#include "environment.h"
#include "gettext.h"
#include "strbuf.h"
#include "run-command.h"
#include "strvec.h"

View File

@ -8,6 +8,7 @@
*/
#include "cache.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "object-store.h"
@ -15,6 +16,8 @@
#include "delta.h"
#include "diff.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "xdiff-interface.h"
#include "ll-merge.h"
@ -24,6 +27,8 @@
#include "rerere.h"
#include "apply.h"
#include "entry.h"
#include "setup.h"
#include "wrapper.h"
struct gitdiff_data {
struct strbuf *root;

View File

@ -4,12 +4,14 @@
#include "git-compat-util.h"
#include "alloc.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "tar.h"
#include "archive.h"
#include "object-store.h"
#include "streaming.h"
#include "run-command.h"
#include "write-or-die.h"
#define RECORDSIZE (512)
#define BLOCKSIZE (RECORDSIZE * 20)

View File

@ -4,11 +4,13 @@
#include "cache.h"
#include "config.h"
#include "archive.h"
#include "gettext.h"
#include "hex.h"
#include "streaming.h"
#include "utf8.h"
#include "object-store.h"
#include "userdiff.h"
#include "write-or-die.h"
#include "xdiff-interface.h"
#include "date.h"

View File

@ -1,7 +1,11 @@
#include "git-compat-util.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "setup.h"
#include "refs.h"
#include "object-store.h"
#include "commit.h"

3
attr.c
View File

@ -9,13 +9,16 @@
#include "cache.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
#include "exec-cmd.h"
#include "attr.h"
#include "dir.h"
#include "gettext.h"
#include "utf8.h"
#include "quote.h"
#include "revision.h"
#include "object-store.h"
#include "setup.h"
#include "thread-utils.h"
const char git_attr__true[] = "(builtin)true";

View File

@ -2,6 +2,8 @@
#include "config.h"
#include "commit.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "revision.h"
#include "refs.h"

View File

@ -5,7 +5,9 @@
#include "mergesort.h"
#include "diff.h"
#include "diffcore.h"
#include "gettext.h"
#include "hex.h"
#include "setup.h"
#include "tag.h"
#include "blame.h"
#include "alloc.h"

View File

@ -2,6 +2,8 @@
#include "cache.h"
#include "config.h"
#include "branch.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "refspec.h"

View File

@ -9,6 +9,7 @@
#include "builtin.h"
#include "lockfile.h"
#include "dir.h"
#include "gettext.h"
#include "pathspec.h"
#include "exec-cmd.h"
#include "cache-tree.h"

View File

@ -5,9 +5,12 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "abspath.h"
#include "config.h"
#include "builtin.h"
#include "environment.h"
#include "exec-cmd.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "dir.h"
@ -36,6 +39,7 @@
#include "packfile.h"
#include "repository.h"
#include "pretty.h"
#include "wrapper.h"
/**
* Returns the length of the first line of msg.

View File

@ -1,5 +1,6 @@
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"
#include "apply.h"

View File

@ -5,6 +5,7 @@
#include "cache.h"
#include "builtin.h"
#include "archive.h"
#include "gettext.h"
#include "transport.h"
#include "parse-options.h"
#include "pkt-line.h"

View File

@ -1,5 +1,7 @@
#include "builtin.h"
#include "cache.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "bisect.h"
@ -10,6 +12,7 @@
#include "prompt.h"
#include "quote.h"
#include "revision.h"
#include "wrapper.h"
static GIT_PATH_FUNC(git_path_bisect_terms, "BISECT_TERMS")
static GIT_PATH_FUNC(git_path_bisect_expected_rev, "BISECT_EXPECTED_REV")

View File

@ -10,6 +10,8 @@
#include "config.h"
#include "color.h"
#include "builtin.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "commit.h"
@ -29,7 +31,9 @@
#include "object-store.h"
#include "blame.h"
#include "refs.h"
#include "setup.h"
#include "tag.h"
#include "write-or-die.h"
static char blame_usage[] = N_("git blame [<options>] [<rev-opts>] [<rev>] [--] <file>");
static char annotate_usage[] = N_("git annotate [<options>] [<rev-opts>] [<rev>] [--] <file>");

View File

@ -8,9 +8,11 @@
#include "cache.h"
#include "config.h"
#include "color.h"
#include "environment.h"
#include "refs.h"
#include "commit.h"
#include "builtin.h"
#include "gettext.h"
#include "remote.h"
#include "parse-options.h"
#include "branch.h"
@ -24,6 +26,7 @@
#include "worktree.h"
#include "help.h"
#include "commit-reach.h"
#include "wrapper.h"
static const char * const builtin_branch_usage[] = {
N_("git branch [<options>] [-r | -a] [--merged] [--no-merged]"),

View File

@ -1,4 +1,6 @@
#include "builtin.h"
#include "abspath.h"
#include "gettext.h"
#include "parse-options.h"
#include "strbuf.h"
#include "help.h"
@ -6,7 +8,8 @@
#include "hook.h"
#include "hook-list.h"
#include "diagnose.h"
#include "setup.h"
#include "wrapper.h"
static void get_system_info(struct strbuf *sys_info)
{

View File

@ -1,4 +1,7 @@
#include "builtin.h"
#include "abspath.h"
#include "gettext.h"
#include "setup.h"
#include "strvec.h"
#include "parse-options.h"
#include "cache.h"

View File

@ -9,6 +9,8 @@
#include "config.h"
#include "builtin.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "ident.h"
#include "parse-options.h"
@ -21,6 +23,7 @@
#include "replace-object.h"
#include "promisor-remote.h"
#include "mailmap.h"
#include "write-or-die.h"
enum batch_mode {
BATCH_MODE_CONTENTS,

View File

@ -3,8 +3,12 @@
#include "cache.h"
#include "config.h"
#include "attr.h"
#include "environment.h"
#include "gettext.h"
#include "quote.h"
#include "setup.h"
#include "parse-options.h"
#include "write-or-die.h"
static int all_attrs;
static int cached_attrs;

View File

@ -3,10 +3,12 @@
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"
#include "quote.h"
#include "pathspec.h"
#include "parse-options.h"
#include "submodule.h"
#include "write-or-die.h"
static int quiet, verbose, stdin_paths, show_non_matching, no_index;
static const char * const check_ignore_usage[] = {

View File

@ -1,9 +1,11 @@
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "ident.h"
#include "mailmap.h"
#include "parse-options.h"
#include "string-list.h"
#include "write-or-die.h"
static int use_stdin;
static const char * const check_mailmap_usage[] = {

View File

@ -5,6 +5,7 @@
#include "cache.h"
#include "refs.h"
#include "builtin.h"
#include "setup.h"
#include "strbuf.h"
static const char builtin_check_ref_format_usage[] =

View File

@ -2,6 +2,7 @@
#include "alloc.h"
#include "config.h"
#include "entry.h"
#include "gettext.h"
#include "parallel-checkout.h"
#include "parse-options.h"
#include "pkt-line.h"

View File

@ -8,12 +8,14 @@
#include "builtin.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"
#include "lockfile.h"
#include "quote.h"
#include "cache-tree.h"
#include "parse-options.h"
#include "entry.h"
#include "parallel-checkout.h"
#include "setup.h"
#define CHECKOUT_ALL 4
static int nul_term_line;

View File

@ -9,6 +9,8 @@
#include "config.h"
#include "diff.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "hook.h"
#include "ll-merge.h"
@ -21,6 +23,7 @@
#include "resolve-undo.h"
#include "revision.h"
#include "run-command.h"
#include "setup.h"
#include "submodule.h"
#include "submodule-config.h"
#include "tree.h"

View File

@ -8,10 +8,13 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"
#include "parse-options.h"
#include "setup.h"
#include "string-list.h"
#include "quote.h"
#include "column.h"

View File

@ -10,7 +10,10 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "abspath.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "parse-options.h"
@ -30,6 +33,7 @@
#include "branch.h"
#include "remote.h"
#include "run-command.h"
#include "setup.h"
#include "connected.h"
#include "packfile.h"
#include "list-objects-filter-options.h"

View File

@ -1,6 +1,7 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "strbuf.h"
#include "parse-options.h"
#include "string-list.h"

View File

@ -1,6 +1,8 @@
#include "builtin.h"
#include "config.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "parse-options.h"

View File

@ -5,6 +5,7 @@
*/
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "repository.h"

View File

@ -12,10 +12,12 @@
#include "cache-tree.h"
#include "color.h"
#include "dir.h"
#include "environment.h"
#include "builtin.h"
#include "diff.h"
#include "diffcore.h"
#include "commit.h"
#include "gettext.h"
#include "revision.h"
#include "wt-status.h"
#include "run-command.h"

View File

@ -1,12 +1,17 @@
#include "builtin.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "color.h"
#include "environment.h"
#include "gettext.h"
#include "ident.h"
#include "parse-options.h"
#include "urlmatch.h"
#include "quote.h"
#include "setup.h"
#include "worktree.h"
#include "wrapper.h"
static const char *const builtin_config_usage[] = {
N_("git config [<options>]"),

View File

@ -7,6 +7,8 @@
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "repository.h"
#include "builtin.h"
#include "parse-options.h"

View File

@ -1,5 +1,7 @@
#include "builtin.h"
#include "abspath.h"
#include "alloc.h"
#include "gettext.h"
#include "parse-options.h"
#ifndef NO_UNIX_SOCKETS

View File

@ -1,5 +1,8 @@
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"
#include "wrapper.h"
#include "write-or-die.h"
#ifndef NO_UNIX_SOCKETS

View File

@ -1,9 +1,11 @@
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "lockfile.h"
#include "credential.h"
#include "string-list.h"
#include "parse-options.h"
#include "write-or-die.h"
static struct lock_file credential_lock;

View File

@ -1,6 +1,8 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "commit.h"
@ -13,6 +15,7 @@
#include "revision.h"
#include "diff.h"
#include "hashmap.h"
#include "setup.h"
#include "strvec.h"
#include "run-command.h"
#include "object-store.h"

View File

@ -1,4 +1,6 @@
#include "builtin.h"
#include "abspath.h"
#include "gettext.h"
#include "parse-options.h"
#include "diagnose.h"

View File

@ -5,6 +5,7 @@
#include "commit.h"
#include "revision.h"
#include "builtin.h"
#include "setup.h"
#include "submodule.h"
static const char diff_cache_usage[] =

View File

@ -3,6 +3,7 @@
#include "config.h"
#include "diff.h"
#include "commit.h"
#include "gettext.h"
#include "hex.h"
#include "log-tree.h"
#include "builtin.h"

View File

@ -11,6 +11,7 @@
#include "color.h"
#include "commit.h"
#include "blob.h"
#include "gettext.h"
#include "tag.h"
#include "diff.h"
#include "diff-merges.h"
@ -18,6 +19,7 @@
#include "revision.h"
#include "log-tree.h"
#include "builtin.h"
#include "setup.h"
#include "submodule.h"
#include "oid-array.h"

View File

@ -13,10 +13,13 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "abspath.h"
#include "config.h"
#include "builtin.h"
#include "run-command.h"
#include "environment.h"
#include "exec-cmd.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "strvec.h"
@ -25,6 +28,8 @@
#include "object-store.h"
#include "dir.h"
#include "entry.h"
#include "setup.h"
#include "wrapper.h"
static int trust_exit_code;

View File

@ -6,6 +6,7 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "refspec.h"

View File

@ -1,5 +1,8 @@
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
@ -21,6 +24,7 @@
#include "commit-reach.h"
#include "khash.h"
#include "date.h"
#include "wrapper.h"
#define PACK_ID_BITS 16
#define MAX_PACK_ID ((1<<PACK_ID_BITS)-1)

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "alloc.h"
#include "gettext.h"
#include "hex.h"
#include "pkt-line.h"
#include "fetch-pack.h"

View File

@ -3,6 +3,8 @@
*/
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "environment.h"
#include "hex.h"
#include "repository.h"
#include "refs.h"

View File

@ -1,7 +1,9 @@
#include "builtin.h"
#include "config.h"
#include "fmt-merge-msg.h"
#include "gettext.h"
#include "parse-options.h"
#include "wrapper.h"
static const char * const fmt_merge_msg_usage[] = {
N_("git fmt-merge-msg [-m <message>] [--log[=<n>] | --no-log] [--file <file>]"),

View File

@ -1,6 +1,7 @@
#include "builtin.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "refs.h"
#include "object.h"
#include "parse-options.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"
#include "run-command.h"
#include "string-list.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "config.h"

View File

@ -1,6 +1,9 @@
#include "builtin.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "parse-options.h"
#include "fsmonitor.h"
#include "fsmonitor-ipc.h"

View File

@ -11,6 +11,8 @@
*/
#include "builtin.h"
#include "abspath.h"
#include "environment.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
@ -32,7 +34,10 @@
#include "refs.h"
#include "remote.h"
#include "exec-cmd.h"
#include "gettext.h"
#include "hook.h"
#include "setup.h"
#include "wrapper.h"
#define FAILED_RUN "failed to run %s"

View File

@ -6,6 +6,7 @@
#include "tar.h"
#include "builtin.h"
#include "quote.h"
#include "wrapper.h"
static const char builtin_get_tar_commit_id_usage[] =
"git get-tar-commit-id";

View File

@ -5,6 +5,7 @@
*/
#include "cache.h"
#include "alloc.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
@ -22,10 +23,12 @@
#include "quote.h"
#include "dir.h"
#include "pathspec.h"
#include "setup.h"
#include "submodule.h"
#include "submodule-config.h"
#include "object-store.h"
#include "packfile.h"
#include "write-or-die.h"
static const char *grep_prefix;

View File

@ -5,13 +5,17 @@
* Copyright (C) Junio C Hamano, 2005
*/
#include "builtin.h"
#include "abspath.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "blob.h"
#include "quote.h"
#include "parse-options.h"
#include "exec-cmd.h"
#include "setup.h"
#include "write-or-die.h"
/*
* This is to create corrupt objects for debugging and as such it

View File

@ -5,11 +5,13 @@
#include "config.h"
#include "builtin.h"
#include "exec-cmd.h"
#include "gettext.h"
#include "parse-options.h"
#include "run-command.h"
#include "config-list.h"
#include "help.h"
#include "alias.h"
#include "setup.h"
#ifndef DEFAULT_HELP_FORMAT
#define DEFAULT_HELP_FORMAT "man"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "hook.h"
#include "parse-options.h"
#include "strbuf.h"

View File

@ -2,6 +2,8 @@
#include "alloc.h"
#include "config.h"
#include "delta.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "pack.h"
#include "csum-file.h"
@ -18,6 +20,8 @@
#include "object-store.h"
#include "replace-object.h"
#include "promisor-remote.h"
#include "setup.h"
#include "wrapper.h"
static const char index_pack_usage[] =
"git index-pack [-v] [-o <index-file>] [--keep | --keep=<msg>] [--[no-]rev-index] [--verify] [--strict] (<pack-file> | --stdin [--fix-thin] [<pack-file>])";

View File

@ -4,12 +4,17 @@
* Copyright (C) Linus Torvalds, 2005
*/
#include "cache.h"
#include "abspath.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "refs.h"
#include "builtin.h"
#include "exec-cmd.h"
#include "parse-options.h"
#include "setup.h"
#include "worktree.h"
#include "wrapper.h"
#ifndef DEFAULT_GIT_TEMPLATE_DIR
#define DEFAULT_GIT_TEMPLATE_DIR "/usr/share/git-core/templates"

View File

@ -7,6 +7,7 @@
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"
#include "string-list.h"
#include "trailer.h"

View File

@ -5,8 +5,11 @@
* 2006 Junio Hamano
*/
#include "git-compat-util.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "object-store.h"
@ -37,6 +40,7 @@
#include "commit-reach.h"
#include "range-diff.h"
#include "tmp-objdir.h"
#include "write-or-die.h"
#define MAIL_DEFAULT_WRAP 72
#define COVER_FROM_AUTO_MAX_SUBJECT_LEN 100

View File

@ -11,6 +11,7 @@
#include "quote.h"
#include "dir.h"
#include "builtin.h"
#include "gettext.h"
#include "strbuf.h"
#include "tree.h"
#include "cache-tree.h"
@ -19,6 +20,7 @@
#include "string-list.h"
#include "pathspec.h"
#include "run-command.h"
#include "setup.h"
#include "submodule.h"
#include "submodule-config.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "cache.h"
#include "gettext.h"
#include "hex.h"
#include "transport.h"
#include "ref-filter.h"

View File

@ -5,6 +5,7 @@
*/
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "object-store.h"
#include "blob.h"

View File

@ -3,7 +3,10 @@
* email to figure out authorship and subject
*/
#include "cache.h"
#include "abspath.h"
#include "builtin.h"
#include "environment.h"
#include "gettext.h"
#include "utf8.h"
#include "strbuf.h"
#include "mailinfo.h"

View File

@ -6,6 +6,7 @@
*/
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "string-list.h"
#include "strbuf.h"

View File

@ -2,6 +2,7 @@
#include "cache.h"
#include "config.h"
#include "commit.h"
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "diff.h"

View File

@ -1,6 +1,9 @@
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "setup.h"
#include "xdiff/xdiff.h"
#include "xdiff-interface.h"
#include "parse-options.h"

View File

@ -1,6 +1,7 @@
#include "cache.h"
#include "builtin.h"
#include "commit.h"
#include "gettext.h"
#include "tag.h"
#include "merge-recursive.h"
#include "xdiff-interface.h"

View File

@ -3,6 +3,7 @@
#include "tree-walk.h"
#include "xdiff-interface.h"
#include "help.h"
#include "gettext.h"
#include "hex.h"
#include "commit.h"
#include "commit-reach.h"

View File

@ -8,8 +8,11 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "builtin.h"
@ -46,6 +49,7 @@
#include "commit-reach.h"
#include "wt-status.h"
#include "commit-graph.h"
#include "wrapper.h"
#define DEFAULT_TWOHEAD (1<<0)
#define DEFAULT_OCTOPUS (1<<1)

View File

@ -1,4 +1,5 @@
#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "tag.h"

View File

@ -5,6 +5,7 @@
*/
#include "builtin.h"
#include "alloc.h"
#include "gettext.h"
#include "hex.h"
#include "quote.h"
#include "tree.h"

View File

@ -1,6 +1,9 @@
#include "builtin.h"
#include "abspath.h"
#include "cache.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "parse-options.h"
#include "midx.h"
#include "trace2.h"

View File

@ -5,14 +5,18 @@
*/
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "abspath.h"
#include "alloc.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "pathspec.h"
#include "lockfile.h"
#include "dir.h"
#include "cache-tree.h"
#include "string-list.h"
#include "parse-options.h"
#include "setup.h"
#include "submodule.h"
#include "entry.h"

View File

@ -1,5 +1,7 @@
#include "builtin.h"
#include "alloc.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "config.h"

View File

@ -10,6 +10,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "notes.h"
#include "object-store.h"
@ -24,6 +25,7 @@
#include "notes-merge.h"
#include "notes-utils.h"
#include "worktree.h"
#include "write-or-die.h"
static const char * const git_notes_usage[] = {
N_("git notes [--ref <notes-ref>] [list [<object>]]"),

View File

@ -1,5 +1,7 @@
#include "builtin.h"
#include "alloc.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "config.h"
@ -40,6 +42,7 @@
#include "promisor-remote.h"
#include "pack-mtimes.h"
#include "parse-options.h"
#include "wrapper.h"
/*
* Objects we are going to pack are collected in the `to_pack` structure.

View File

@ -7,6 +7,7 @@
*/
#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "repository.h"
#include "packfile.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "parse-options.h"
#include "refs.h"
#include "repository.h"

View File

@ -2,6 +2,7 @@
#include "builtin.h"
#include "config.h"
#include "diff.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"

View File

@ -1,4 +1,5 @@
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"
#include "prune-packed.h"

View File

@ -1,6 +1,8 @@
#include "cache.h"
#include "commit.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "revision.h"
#include "builtin.h"

View File

@ -9,6 +9,7 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "exec-cmd.h"

View File

@ -4,6 +4,8 @@
#include "cache.h"
#include "branch.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "refs.h"
#include "refspec.h"
#include "run-command.h"

View File

@ -1,5 +1,6 @@
#include "cache.h"
#include "builtin.h"
#include "gettext.h"
#include "parse-options.h"
#include "range-diff.h"
#include "config.h"

View File

@ -7,6 +7,7 @@
#define USE_THE_INDEX_VARIABLE
#include "cache.h"
#include "config.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "object.h"
@ -18,6 +19,7 @@
#include "builtin.h"
#include "parse-options.h"
#include "resolve-undo.h"
#include "setup.h"
#include "submodule.h"
#include "submodule-config.h"

View File

@ -6,6 +6,9 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "abspath.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "run-command.h"
#include "exec-cmd.h"
@ -30,6 +33,7 @@
#include "rebase-interactive.h"
#include "reset.h"
#include "hook.h"
#include "wrapper.h"
static char const * const builtin_rebase_usage[] = {
N_("git rebase [-i] [options] [--exec <cmd>] "

View File

@ -1,6 +1,9 @@
#include "builtin.h"
#include "abspath.h"
#include "repository.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "pack.h"
@ -32,6 +35,7 @@
#include "worktree.h"
#include "shallow.h"
#include "parse-options.h"
#include "wrapper.h"
static const char * const receive_pack_usage[] = {
N_("git receive-pack <git-dir>"),

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "revision.h"
#include "reachable.h"
#include "worktree.h"

View File

@ -1,5 +1,6 @@
#include "builtin.h"
#include "config.h"
#include "gettext.h"
#include "parse-options.h"
#include "transport.h"
#include "remote.h"

View File

@ -2,6 +2,8 @@
#include "alloc.h"
#include "config.h"
#include "dir.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "parse-options.h"
#include "run-command.h"

View File

@ -11,6 +11,8 @@
#include "cache.h"
#include "config.h"
#include "builtin.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "refs.h"
#include "parse-options.h"

View File

@ -2,9 +2,11 @@
#include "cache.h"
#include "config.h"
#include "dir.h"
#include "gettext.h"
#include "parse-options.h"
#include "string-list.h"
#include "rerere.h"
#include "wrapper.h"
#include "xdiff/xdiff.h"
#include "xdiff-interface.h"
#include "pathspec.h"

View File

@ -10,6 +10,8 @@
#define USE_THE_INDEX_VARIABLE
#include "builtin.h"
#include "config.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "lockfile.h"
#include "tag.h"
@ -24,6 +26,7 @@
#include "parse-options.h"
#include "unpack-trees.h"
#include "cache-tree.h"
#include "setup.h"
#include "submodule.h"
#include "submodule-config.h"
#include "dir.h"

View File

@ -2,6 +2,8 @@
#include "config.h"
#include "commit.h"
#include "diff.h"
#include "environment.h"
#include "gettext.h"
#include "hex.h"
#include "revision.h"
#include "list-objects.h"

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