#include "git-compat-util.h" #include "advice.h" #include "config.h" #include "color.h" #include "environment.h" #include "gettext.h" #include "help.h" #include "string-list.h" static int advice_use_color = …; static char advice_colors[][COLOR_MAXLEN] = …; enum color_advice { … }; static int parse_advise_color_slot(const char *slot) { … } static const char *advise_get_color(enum color_advice ix) { … } enum advice_level { … }; static struct { … } advice_setting[] = …; static const char turn_off_instructions[] = …); static void vadvise(const char *advice, int display_instructions, const char *key, va_list params) { … } void advise(const char *advice, ...) { … } int advice_enabled(enum advice_type type) { … } void advise_if_enabled(enum advice_type type, const char *advice, ...) { … } int git_default_advice_config(const char *var, const char *value) { … } void list_config_advices(struct string_list *list, const char *prefix) { … } int error_resolve_conflict(const char *me) { … } void NORETURN die_resolve_conflict(const char *me) { … } void NORETURN die_conclude_merge(void) { … } void NORETURN die_ff_impossible(void) { … } void advise_on_updating_sparse_paths(struct string_list *pathspec_list) { … } void detach_advice(const char *new_name) { … } void advise_on_moving_dirty_path(struct string_list *pathspec_list) { … }