You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I'm currently in the process of splitting this branch I'm working on into two branches; There were a lot of unrelated changes in it, so I wanted to create a new "Remove old code" branch. The commits I've made weren't particularly good so there are a lot of random files in random commits. I used the Copy/Paste commit feature to copy some of the earliest commits, but one of the commits contains a hodge-podge of random files of which I want one of them in the new branch.
Describe the solution you'd like
Pressing C in the "Diff files" view should move that file to the Clipboard, similar to how you can use C in the Commits view. Afterwards, pressing V over the Commits view in a different branch should spawn the commit-creation popup allowing you to create a commit containing only the copied file.
Describe alternatives you've considered
As a user, I could manually edit the commits in order to have a dedicated commit for this file and then copy that file, but that's a lot of addtional steps.
Additional context
The text was updated successfully, but these errors were encountered:
This is what custom patches are for. In the Diff Files view, press space on the file you want to copy to add it to a custom patch, then press ctrl-p and pick "apply patch" to add it to your working copy. You'll then still have to commit it from there, but compared to your proposed solution this has the advantage that it also works on parts of a file's diff.
Is your feature request related to a problem? Please describe.
I'm currently in the process of splitting this branch I'm working on into two branches; There were a lot of unrelated changes in it, so I wanted to create a new "Remove old code" branch. The commits I've made weren't particularly good so there are a lot of random files in random commits. I used the Copy/Paste commit feature to copy some of the earliest commits, but one of the commits contains a hodge-podge of random files of which I want one of them in the new branch.
Describe the solution you'd like
Pressing
C
in the "Diff files" view should move that file to the Clipboard, similar to how you can useC
in theCommits
view. Afterwards, pressingV
over theCommits
view in a different branch should spawn the commit-creation popup allowing you to create a commit containing only the copied file.Describe alternatives you've considered
As a user, I could manually edit the commits in order to have a dedicated commit for this file and then copy that file, but that's a lot of addtional steps.
Additional context
The text was updated successfully, but these errors were encountered: