]> git.ipfire.org Git - thirdparty/git.git/commit - sequencer.c
sequencer: move the code writing total_nr on the disk to a new function
authorAlban Gruin <alban.gruin@gmail.com>
Sun, 24 Nov 2019 17:43:30 +0000 (18:43 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 25 Nov 2019 03:24:49 +0000 (12:24 +0900)
commit3f34f2d8a4da82ddda48a591cbb091f24a5f3e58
treef888e2325fad1006b0050b569837f19135ddf880
parent34065541e3f99ce23ac431032daf9d72072e650b
sequencer: move the code writing total_nr on the disk to a new function

The total number of commands can be used to show the progression of the
rebasing in a shell.  It is written to the disk by read_populate_todo()
when the todo list is loaded from sequencer_continue() or
pick_commits(), but not by complete_action().

This moves the part writing total_nr to a new function so it can be
called from complete_action().

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