#define USE_THE_REPOSITORY_VARIABLE #include "builtin.h" #include "abspath.h" #include "editor.h" #include "gettext.h" #include "parse-options.h" #include "strbuf.h" #include "help.h" #include "compat/compiler.h" #include "hook.h" #include "hook-list.h" #include "diagnose.h" #include "object-file.h" #include "setup.h" static void get_system_info(struct strbuf *sys_info) { … } static void get_populated_hooks(struct strbuf *hook_info, int nongit) { … } static const char * const bugreport_usage[] = …; static int get_bug_template(struct strbuf *template) { … } static void get_header(struct strbuf *buf, const char *title) { … } int cmd_bugreport(int argc, const char **argv, const char *prefix, struct repository *repo UNUSED) { … }