#define USE_THE_REPOSITORY_VARIABLE #include "git-compat-util.h" #include "abspath.h" #include "advice.h" #include "config.h" #include "editor.h" #include "environment.h" #include "gettext.h" #include "pager.h" #include "path.h" #include "strbuf.h" #include "strvec.h" #include "run-command.h" #include "sigchain.h" #ifndef DEFAULT_EDITOR #define DEFAULT_EDITOR … #endif int is_terminal_dumb(void) { … } const char *git_editor(void) { … } const char *git_sequence_editor(void) { … } static int launch_specified_editor(const char *editor, const char *path, struct strbuf *buffer, const char *const *env) { … } int launch_editor(const char *path, struct strbuf *buffer, const char *const *env) { … } int launch_sequence_editor(const char *path, struct strbuf *buffer, const char *const *env) { … } int strbuf_edit_interactively(struct repository *r, struct strbuf *buffer, const char *path, const char *const *env) { … }