Skip to content

"split" a commit using a previous version of that commit? #2551

Answered by martinvonz
BatmanAoD asked this question in Q&A
Discussion options

You must be logged in to vote

There's an entry in the FAQ about this.

(A generic way to generate a commit from a diff, perhaps as an option on diff itself, would be kind of cool. I think git can do this with a clever use of git-apply, though I haven't actually tried it.)

Makes sense. jj move moves a diff from one commit to another. We could have something similar for applying the diff between two arbitrary commits into another commit, if this turns out be a common enough request.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by BatmanAoD
Comment options

You must be logged in to vote
2 replies
@BatmanAoD
Comment options

BatmanAoD Nov 8, 2023
Collaborator Author

@necauqua
Comment options

necauqua Nov 8, 2023
Collaborator

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