Phillip Wood
fb60b9f37f
sequencer: use struct strvec to store merge strategy options
...
The sequencer stores the merge strategy options in an array of strings
which allocated with ALLOC_GROW(). Using "struct strvec" avoids manually
managing the memory of that array and simplifies the code.
Aside from memory allocation the changes to the sequencer are largely
mechanical, changing xopts_nr to xopts.nr and xopts[i] to xopts.v[i]. A
new option parsing macro OPT_STRVEC() is also added to collect the
strategy options. Hopefully this can be used to simplify the code in
builtin/merge.c in the future.
Note that there is a change of behavior to "git cherry-pick" and "git
revert" as passing “--no-strategy-option” will now clear any previous
strategy options whereas before this change it did nothing.
Reviewed-by: Elijah Newren <newren@gmail.com >
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2023-04-10 09:53:19 -07:00
..
2023-02-06 15:03:34 -08:00
2023-03-17 14:03:10 -07:00
2023-03-06 13:14:45 -08:00
2023-03-19 15:03:11 -07:00
2023-02-23 17:25:29 -08:00
2023-02-14 14:15:55 -08:00
2022-11-21 12:32:48 +09:00
2023-03-19 15:03:12 -07:00
2023-03-17 14:03:09 -07:00
2023-01-14 08:49:55 -08:00
2022-11-21 12:06:15 +09:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:28 -08:00
2022-11-21 12:06:15 +09:00
2023-03-19 15:03:12 -07:00
2023-02-22 14:55:45 -08:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:30 -08:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:10 -07:00
2023-02-23 17:25:29 -08:00
2023-02-24 09:13:31 -08:00
2023-03-17 14:03:09 -07:00
2023-02-23 17:25:29 -08:00
2022-11-21 12:06:15 +09:00
2022-11-21 12:06:15 +09:00
2023-02-23 17:25:29 -08:00
2022-12-14 15:55:46 +09:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-03-17 14:03:09 -07:00
2023-03-28 10:51:52 -07:00
2023-03-19 15:03:13 -07:00
2022-11-14 22:39:25 -05:00
2023-03-17 14:03:09 -07:00
2023-02-23 17:25:28 -08:00
2023-03-17 14:03:09 -07:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-02-08 12:50:03 -08:00
2023-02-23 17:25:30 -08:00
2023-03-21 14:18:55 -07:00
2023-03-21 14:18:55 -07:00
2023-03-30 13:47:11 -07:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2022-11-21 12:06:15 +09:00
2023-02-23 17:25:29 -08:00
2023-03-17 14:03:10 -07:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:28 -08:00
2023-02-23 17:25:29 -08:00
2023-03-17 14:03:09 -07:00
2023-03-30 13:47:11 -07:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-03-17 14:03:09 -07:00
2023-03-17 14:03:10 -07:00
2023-03-17 14:03:10 -07:00
2022-12-02 08:25:29 +09:00
2023-03-17 14:03:09 -07:00
2023-04-10 09:53:19 -07:00
2023-03-30 13:47:11 -07:00
2023-03-20 11:26:47 -07:00
2023-01-08 10:34:37 +09:00
2023-01-08 10:34:35 +09:00
2022-11-08 17:15:12 -05:00
2023-03-17 14:03:09 -07:00
2023-02-23 17:25:30 -08:00
2022-12-13 22:16:23 +09:00
2023-03-19 15:03:12 -07:00
2023-03-17 14:03:10 -07:00
2023-02-23 17:25:29 -08:00
2023-04-10 09:53:19 -07:00
2023-02-23 17:25:28 -08:00
2023-03-30 13:47:11 -07:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00
2023-02-27 08:29:51 -08:00
2023-02-23 17:25:29 -08:00
2023-03-17 14:03:09 -07:00
2023-03-19 15:03:12 -07:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:30 -08:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:30 -08:00
2023-02-23 17:25:29 -08:00
2023-02-27 08:00:39 -08:00
2023-02-27 08:00:39 -08:00
2023-02-23 17:25:29 -08:00
2023-02-23 17:25:29 -08:00