lazygit/pkg/commands
Stefan Haller 5e542c3992 Filter out merge commits when generating todo changes in InteractiveRebase
We will need this because under some conditions we are going to use this
function to edit a range of commits, and we can't set merge commits to "edit".
This corresponds to the code in startInteractiveRebaseWithEdit which has similar
logic.

It is a bit unfortunate that we will have these two different ways of setting
todos to edit: startInteractiveRebaseWithEdit does it after stopping in the
rebase, in the Then function of its refresh, but InteractiveRebase does it in
the daemon with a ChangeTodoActionsInstruction. It still makes sense though,
given how InteractiveRebase works.

This not only affects "edit", but also "drop", "fixup", and "squash".
Previously, when trying to use these for a range selection that includes a merge
commit, they would fail with the cryptic error message "Some todos not found in
git-rebase-todo"; now they simply exclude the merge commit. I'm not sure if one
is better or worse than the other, and we should probably simply disable the
commands when a merge commit is selected, but that's out of scope in this PR.
2024-11-29 18:24:00 +01:00
..
git_commands Filter out merge commits when generating todo changes in InteractiveRebase 2024-11-29 18:24:00 +01:00
git_config Use print instead of printf when there are no arguments 2024-08-27 10:33:06 +02:00
hosting_service Remove non-English translation sets, read them from JSON instead 2024-06-23 14:47:50 +02:00
models Add ShortRefName to Ref interface 2024-08-28 18:27:52 +02:00
oscommands [DATALAD RUNCMD] Do interactive fixing of some ambigous typos 2024-08-27 18:03:00 +02:00
patch Fix custom patch operations on added files 2024-06-23 12:40:31 +02:00
testdata
types/enums Show mode-specific keybinding suggestions 2024-01-28 08:33:13 +11:00
git.go Add ahead/behind information for @{push} 2024-05-19 09:44:38 +02:00
git_cmd_obj_builder.go Use an interactive shell for running custom commands 2024-08-17 10:32:18 +02:00
git_cmd_obj_runner.go