| 46 | } |
| 47 | |
| 48 | const char *git_sequence_editor(void) |
| 49 | { |
| 50 | const char *editor = getenv("GIT_SEQUENCE_EDITOR"); |
| 51 | |
| 52 | if (!editor) |
| 53 | repo_config_get_string_tmp(the_repository, "sequence.editor", &editor); |
| 54 | if (!editor) |
| 55 | editor = git_editor(); |
| 56 | |
| 57 | return editor; |
| 58 | } |
| 59 | |
| 60 | static int launch_specified_editor(const char *editor, const char *path, |
| 61 | struct strbuf *buffer, const char *const *env) |
no test coverage detected