mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-06 10:47:38 +02:00
843e12286f
This fixes two minor problems with the prompts: 1. When pressing shift-A in the local commits view, it would first prompt whether to stage all files, and then it would prompt whether to amend the commit at all. This doesn't make sense, it needs to be the other way round. 2. When pressing shift-A on the head commit in an interactive rebase, we would ask whether they want to amend the last commit, like when pressing shift-A in the files view. While this is technically correct, the fact that we're amending the head commit in this case is just an implementation detail, and from the user's point of view it's better to use the same prompt as we do for any other commit. To fix these, we remove the confirmation panel from AmendHelper.AmendHead() and instead add it at the two call sites, so that we have more control over this. |
||
---|---|---|
.. | ||
advanced_interactive_rebase.go | ||
amend_commit_with_conflict.go | ||
amend_first_commit.go | ||
amend_fixup_commit.go | ||
amend_head_commit_during_rebase.go | ||
amend_merge.go | ||
amend_non_head_commit_during_rebase.go | ||
drop_todo_commit_with_update_ref.go | ||
drop_with_custom_comment_char.go | ||
edit_first_commit.go | ||
edit_non_todo_commit_during_rebase.go | ||
edit_the_confl_commit.go | ||
fixup_first_commit.go | ||
fixup_second_commit.go | ||
move_in_rebase.go | ||
move_with_custom_comment_char.go | ||
move.go | ||
pick_rescheduled.go | ||
rebase.go | ||
reword_commit_with_editor_and_fail.go | ||
reword_first_commit.go | ||
reword_last_commit.go | ||
reword_you_are_here_commit_with_editor.go | ||
reword_you_are_here_commit.go | ||
shared.go | ||
squash_down_first_commit.go | ||
squash_down_second_commit.go | ||
squash_fixups_above_first_commit.go | ||
swap_in_rebase_with_conflict_and_edit.go | ||
swap_in_rebase_with_conflict.go | ||
swap_with_conflict.go |