diff options
author | Alban Gruin <alban.gruin@gmail.com> | 2019-03-05 20:18:00 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-03-07 09:17:57 +0900 |
commit | 6bfeb7f1b503cf3fa0fd5690c0c98a9813c7c875 (patch) | |
tree | 1e6f691061f2479d377468cc900d2ca92391ad54 /ls-refs.c | |
parent | rebase--interactive: move rearrange_squash_in_todo_file() (diff) | |
download | tgif-6bfeb7f1b503cf3fa0fd5690c0c98a9813c7c875.tar.xz |
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 'ls-refs.c')
0 files changed, 0 insertions, 0 deletions