1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-12-12 11:15:00 +02:00
lazygit/pkg/utils
Stefan Haller a8586ba57e Refactor: simplify PrepareInteractiveRebaseCommand API
Instead of passing a bunch of different options in
PrepareInteractiveRebaseCommandOpts, where it was unclear how they interact if
several are set, have only a single field "instruction" which can be set to one
of various different instructions.

The functionality of replacing the entire todo file with our own is no longer
available; it is only possible to prepend todos to the existing file.

Also, instead of using different env vars for the various rebase operations that
we want to tell the daemon to do, use a single one that contains a json-encoded
struct with all available instructions. This makes the protocol much clearer,
and makes it easier to extend in the future.
2023-04-29 07:28:33 +02:00
..
color_test.go update linters 2022-03-19 12:12:57 +11:00
color.go feat: accept named colors for gui.authorColors 2022-05-04 19:03:00 +09:00
date.go feat: add ability to customize time format 2022-05-18 20:55:27 +09:00
dummies.go formatter 2022-09-17 15:10:41 -07:00
errors.go move OS commands into their own package 2020-09-29 20:48:49 +10:00
formatting_test.go better formatting 2021-10-31 22:33:39 +11:00
formatting.go many more generics 2022-03-24 20:14:41 +11:00
fuzzy_search_test.go Start on supporting auto-suggestions when checking out a branch 2020-11-28 20:48:17 +11:00
fuzzy_search.go many more generics 2022-03-24 20:14:41 +11:00
io.go refactor 2021-06-02 20:33:52 +10:00
lines_test.go fix: fix stash with empty message 2022-10-13 22:23:56 +09:00
lines.go fix: fix stash with empty message 2022-10-13 22:23:56 +09:00
once_writer_test.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
once_writer.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
rebase_todo_test.go enforce lowercase filenames 2023-04-29 13:05:05 +10:00
rebase_todo.go Refactor: simplify PrepareInteractiveRebaseCommand API 2023-04-29 07:28:33 +02:00
regexp_test.go add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
regexp.go add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
slice_test.go Make moving todo commits more robust 2023-04-15 08:36:03 +02:00
slice.go Make moving todo commits more robust 2023-04-15 08:36:03 +02:00
string_stack.go start refactoring gui 2022-03-17 19:13:40 +11:00
template_test.go fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
template.go fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
thread_safe_map_test.go use thread safe map 2022-10-02 20:57:44 -07:00
thread_safe_map.go use thread safe map 2022-10-02 20:57:44 -07:00
utils_test.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00
utils.go Use lazycore utils: Clamp and GetLazyRootDirectory 2022-10-15 13:55:44 -03:00