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
Родитель 72871b198f ec2f026961
Коммит 6047b28eb7
340 изменённых файлов: 1311 добавлений и 669 удалений

Просмотреть файл

@ -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 * Do not use this for inspecting *tracked* content. When path is a

33
abspath.h Normal 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 */

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

3
attr.c
Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше