jesseduffield.lazygit/pkg/utils
Stefan Haller 3fe4db9316 Make RebaseCommands.AmendTo more robust
This fixes two problems with the "amend commit with staged changes" command:

1. Amending to a fixup commit didn't work (this would create a commmit with the
   title "fixup! fixup! original title" and keep that at the top of the branch)
2. Unrelated fixup commits would be squashed too.

The added integration test verifies that both of these problems are fixed.
2023-04-29 07:28:33 +02:00
..
color.go feat: accept named colors for gui.authorColors 2022-05-04 19:03:00 +09:00
color_test.go update linters 2022-03-19 12:12:57 +11: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.go many more generics 2022-03-24 20:14:41 +11:00
formatting_test.go better formatting 2021-10-31 22:33:39 +11:00
fuzzy_search.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
io.go refactor 2021-06-02 20:33:52 +10:00
lines.go fix: fix stash with empty message 2022-10-13 22:23:56 +09:00
lines_test.go fix: fix stash with empty message 2022-10-13 22:23:56 +09:00
once_writer.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
once_writer_test.go add deadlock mutex package 2022-08-07 11:16:14 +10:00
rebase_todo.go Make RebaseCommands.AmendTo more robust 2023-04-29 07:28:33 +02:00
rebase_todo_test.go enforce lowercase filenames 2023-04-29 13:05:05 +10:00
regexp.go add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
regexp_test.go add FindNamedMatches function in utils 2021-12-26 16:48:23 +11:00
slice.go Make moving todo commits more robust 2023-04-15 08:36:03 +02:00
slice_test.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.go fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
template_test.go fix: fix ReplacePlaceholderString 2023-01-18 20:56:22 +09:00
thread_safe_map.go use thread safe map 2022-10-02 20:57:44 -07:00
thread_safe_map_test.go use thread safe map 2022-10-02 20:57:44 -07:00
utils.go Use lazycore utils: Clamp and GetLazyRootDirectory 2022-10-15 13:55:44 -03:00
utils_test.go refactor to only have one context per view 2022-08-06 13:49:11 +10:00