diff options
author | Alban Gruin <alban.gruin@gmail.com> | 2019-03-05 20:17:57 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-07 09:17:57 +0900 |
commit | 94bcad797966b6a3490bc6806d3ee3eed54da9d9 (patch) | |
tree | 48cf20490b699fe3d266eb1da84c24f125245f72 /serve.c | |
parent | sequencer: make sequencer_make_script() write its script to a strbuf (diff) | |
download | tgif-94bcad797966b6a3490bc6806d3ee3eed54da9d9.tar.xz |
sequencer: change complete_action() to use the refactored functions
complete_action() used functions that read the todo-list file, made some
changes to it, and wrote it back to the disk.
The previous commits were dedicated to separate the part that deals with
the file from the actual logic of these functions. Now that this is
done, we can call directly the "logic" functions to avoid useless file
access.
The parsing of the list has to be done by the caller. If the buffer of
the todo list provided by the caller is empty, a `noop' command is
directly added to the todo list, without touching the buffer.
Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'serve.c')
0 files changed, 0 insertions, 0 deletions