#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "config.h" #include "attr.h" #include "environment.h" #include "gettext.h" #include "object-name.h" #include "quote.h" #include "setup.h" #include "parse-options.h" #include "write-or-die.h" static int all_attrs; static int cached_attrs; static int stdin_paths; static char *source; static const char * const check_attr_usage[] = …; static int nul_term_line; static const struct option check_attr_options[] = …; static void output_attr(struct attr_check *check, const char *file) { … } static void check_attr(const char *prefix, struct attr_check *check, int collect_all, const char *file) { … } static void check_attr_stdin_paths(const char *prefix, struct attr_check *check, int collect_all) { … } static NORETURN void error_with_usage(const char *msg) { … } int cmd_check_attr(int argc, const char **argv, const char *prefix, struct repository *repo UNUSED) { … }