editor: add a function to launch the sequence editor
authorAlban Gruin <alban.gruin@gmail.com>
Fri, 10 Aug 2018 16:51:30 +0000 (18:51 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Aug 2018 18:56:22 +0000 (11:56 -0700)
commit2aed01811daee2f412b795ea539a4eb5abb69510
treeecdacc2374cea01cbffac405451ec9a42e983a80
parent145e05ac44b4c574fc22e6d3af7c5a14ad9b7335
editor: add a function to launch the sequence editor

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: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cache.h
editor.c
strbuf.h