#define USE_THE_REPOSITORY_VARIABLE #include "builtin.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[] = …; static int nul_term_line; static const struct option check_ignore_options[] = …; static void output_pattern(const char *path, struct path_pattern *pattern) { … } static int check_ignore(struct dir_struct *dir, const char *prefix, int argc, const char **argv) { … } static int check_ignore_stdin_paths(struct dir_struct *dir, const char *prefix) { … } int cmd_check_ignore(int argc, const char **argv, const char *prefix, struct repository *repo UNUSED) { … }