Skip to content

Cherrypick with the -x flag? #4787

Answered by stefanhaller
Akselmo asked this question in Q&A
Discussion options

You must be logged in to vote

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}}^..{{…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Akselmo
Comment options

Answer selected by Akselmo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants