Alban Gruin
f2a04904be
sequencer: refactor rearrange_squash() to work on a todo_list
...
This refactors rearrange_squash() to work on a todo_list to avoid
redundant reads and writes. The function is renamed
todo_list_rearrange_squash().
The old version created a new buffer, which was directly written to the
disk. This new version creates a new item list by just copying items
from the old item list, without creating a new buffer. This eliminates
the need to reparse the todo list, but this also means its buffer cannot
be directly written to the disk.
As rebase -p still need to check the todo list from the disk, a new
function is introduced, rearrange_squash_in_todo_file().
complete_action() still uses rearrange_squash_in_todo_file() for now.
This will be changed in a future commit.
Signed-off-by: Alban Gruin <alban.gruin@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2019-03-07 09:17:57 +09:00
..
2018-11-21 22:57:45 +09:00
2019-01-04 13:33:33 -08:00
2018-08-13 14:14:44 -07:00
2018-10-26 10:17:59 +09:00
2018-11-12 14:50:05 +09:00
2018-12-15 12:24:33 +09:00
2018-11-21 22:58:06 +09:00
2018-11-12 14:50:06 +09:00
2018-11-19 16:24:41 +09:00
2018-09-12 15:15:34 -07:00
2018-02-12 13:09:35 -08:00
2017-11-15 12:04:57 +09:00
2018-11-06 12:56:29 +09:00
2018-11-12 14:50:06 +09:00
2018-11-06 12:56:29 +09:00
2018-09-17 13:53:47 -07:00
2018-05-13 10:45:05 +09:00
2018-10-19 13:34:07 +09:00
2018-06-29 10:43:39 -07:00
2019-01-04 13:33:33 -08:00
2018-10-22 13:17:04 +09:00
2018-11-13 14:22:02 +09:00
2018-11-06 12:49:59 +09:00
2018-09-21 09:51:19 -07:00
2018-09-21 09:51:19 -07:00
2018-09-21 09:51:19 -07:00
2018-10-19 13:34:02 +09:00
2018-10-19 13:34:02 +09:00
2018-11-12 16:43:52 +09:00
2018-10-15 12:53:15 +09:00
2018-11-18 18:23:53 +09:00
2018-10-19 13:34:02 +09:00
2017-10-04 11:35:29 +09:00
2019-01-04 13:33:33 -08:00
2018-10-16 16:16:02 +09:00
2017-09-27 15:45:24 +09:00
2019-01-04 13:33:32 -08:00
2018-09-21 09:48:11 -07:00
2018-10-26 14:22:13 +09:00
2018-11-19 16:24:41 +09:00
2018-11-06 12:56:29 +09:00
2018-11-06 12:56:29 +09:00
2018-12-04 10:36:14 +09:00
2018-11-06 12:56:29 +09:00
2018-11-13 22:37:17 +09:00
2018-11-12 16:43:52 +09:00
2018-11-02 11:04:55 +09:00
2018-11-06 12:56:29 +09:00
2018-11-12 14:50:06 +09:00
2018-07-16 14:27:39 -07:00
2018-11-13 22:37:27 +09:00
2019-01-04 13:33:33 -08:00
2018-05-16 11:42:03 +09:00
2018-10-15 12:53:15 +09:00
2018-09-17 13:49:38 -07:00
2018-05-30 14:04:05 +09:00
2018-06-29 10:43:39 -07:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2018-08-20 15:31:40 -07:00
2018-04-12 11:38:56 +09:00
2018-08-14 12:29:57 -07:00
2018-11-21 22:57:52 +09:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2018-10-19 13:34:02 +09:00
2019-01-04 13:33:33 -08:00
2019-03-07 09:17:57 +09:00
2019-01-04 13:33:33 -08:00
2018-11-21 22:58:00 +09:00
2019-01-04 13:33:31 -08:00
2017-09-22 12:49:57 +09:00
2018-09-24 10:30:52 -07:00
2019-01-04 13:33:31 -08:00
2018-12-01 21:41:42 +09:00
2019-01-04 13:33:33 -08:00
2019-01-04 13:33:33 -08:00
2018-11-21 22:57:52 +09:00
2018-11-13 22:37:23 +09:00
2019-01-04 13:33:33 -08:00
2018-08-29 11:32:49 -07:00
2018-08-27 14:33:43 -07:00
2018-03-15 12:01:08 -07:00
2018-12-15 12:24:33 +09:00
2018-11-06 12:56:29 +09:00
2018-05-29 00:28:22 +09:00
2018-11-06 12:56:29 +09:00
2019-01-04 13:33:32 -08:00
2017-11-06 10:31:08 +09:00
2018-11-06 12:56:29 +09:00
2018-05-16 11:42:03 +09:00
2018-08-29 11:32:49 -07:00
2018-12-15 12:24:33 +09:00
2018-09-12 15:17:17 -07:00
2018-02-09 10:24:50 -08:00
2018-10-26 10:17:59 +09:00
2018-07-18 15:45:14 -07:00
2018-06-29 10:43:39 -07:00
2018-04-09 06:14:45 +09:00
2018-10-31 11:41:47 +09:00
2018-08-17 13:09:56 -07:00