• Alban Gruin's avatar
    editor: add a function to launch the sequence editor · 2aed0181
    Alban Gruin authored
    As part of the rewrite of interactive rebase, the sequencer will need to
    open the sequence editor to allow the user to edit the todo list.
    Instead of duplicating the existing launch_editor() function, this
    refactors it to a new function, launch_specified_editor(), which takes
    the editor as a parameter, in addition to the path, the buffer and the
    environment variables.  launch_sequence_editor() is then added to launch
    the sequence editor.
    Signed-off-by: default avatarAlban Gruin <alban.gruin@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
editor.c 2.85 KB