Cherrypick with the -x flag? #4787
-
Hi, is there way to set lazygit to use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No, we don't have this. I personally don't find it important because I'm a proponent of rebase-heavy workflows, where the hashes tend to get stale (if you cherry-pick commits between feature branches, for example, and then rebase them). I do see of course that in some workflows the hashes can be useful, for example when cherry-picking commits from main to a hotfix branch. It's a bit unclear what the UX for this could be; long-term, something like #2849 could allow it. In the meantime, a custom command could help, for example customCommands:
- key: <whatever>
description: Cherry-pick -x
context: commits,subCommits
command: git cherry-pick -x {{.SelectedCommitRange.From}}^..{{.SelectedCommitRange.To}} |
Beta Was this translation helpful? Give feedback.
No, we don't have this. I personally don't find it important because I'm a proponent of rebase-heavy workflows, where the hashes tend to get stale (if you cherry-pick commits between feature branches, for example, and then rebase them). I do see of course that in some workflows the hashes can be useful, for example when cherry-picking commits from main to a hotfix branch.
It's a bit unclear what the UX for this could be; long-term, something like #2849 could allow it.
In the meantime, a custom command could help, for example