sequencer: make sequencer_make_script() write its script to a strbuf
authorAlban Gruin <alban.gruin@gmail.com>
Tue, 5 Mar 2019 19:17:56 +0000 (20:17 +0100)
committerJunio C Hamano <gitster@pobox.com>
Thu, 7 Mar 2019 00:17:57 +0000 (09:17 +0900)
commitd358fc286d1da690fb4acea629457faa9010944a
treeabcbac1254b5c2a693c1aad9bba24a10bce71a3c
parentf2a04904be6584f1ec783ed5d3c425026bcf908f
sequencer: make sequencer_make_script() write its script to a strbuf

This makes sequencer_make_script() write its script to a strbuf (ie. the
buffer of a todo_list) instead of a FILE.  This reduce the amount of
read/write made by rebase interactive.

Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/rebase--interactive.c
sequencer.c
sequencer.h