3 ms·
I split work consisting of multiple changes in the same file just fine under CVS and Quilt. I would convert the change to a unified diff, remove the change, an
by kazinator 9y ago
I split work consisting of multiple changes in the same file just fine under CVS and Quilt.
I would convert the change to a unified diff, remove the change, and then apply the selected hunks out of that diff with patch. ("Selected" means making a copy of the diff, in which I take out the hunks I don't want to apply. Often I'd just have it loaded in Vim, and use undo to roll back to the original diff and remove something else.)
Using reversed diffs (diff -uR) I used also to selectively remove unwanted changes, similarly to "git checkout --patch"
This is basically what git is doing; it doesn't require the index. The index is just the destination where these selective hunks are being applied.