summaryrefslogtreecommitdiff
path: root/rebase-interactive.c
diff options
context:
space:
mode:
authorAlban Gruin <alban.gruin@gmail.com>2019-03-05 20:18:00 +0100
committerJunio C Hamano <gitster@pobox.com>2019-03-07 09:17:57 +0900
commit6bfeb7f1b503cf3fa0fd5690c0c98a9813c7c875 (patch)
tree1e6f691061f2479d377468cc900d2ca92391ad54 /rebase-interactive.c
parent79d7e883bb69803daf4a6f44692cb8fc0eee5b24 (diff)
downloadgit-6bfeb7f1b503cf3fa0fd5690c0c98a9813c7c875.tar.gz
sequencer: refactor skip_unnecessary_picks() to work on a todo_list
This refactors skip_unnecessary_picks() to work on a todo_list. As this function is only called by complete_action() (and thus is not used by rebase -p), the file-handling logic is completely dropped here. Instead of truncating the todo list’s buffer, the items are moved to the beginning of the list, eliminating the need to reparse the list. This also means its buffer cannot be directly written to the disk. rewrite_file() is then removed, as it is now unused. Signed-off-by: Alban Gruin <alban.gruin@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'rebase-interactive.c')
0 files changed, 0 insertions, 0 deletions