Specifically, I've done a diff on a commit range to see what files have changed:
git diff COMMIT_X COMMIT_Y --name-only
I get results like this:
/src/foo.php
/src/lib/bar.php
/src/lib/baz.php
/src/meta/test.php
I want to take all the changes introduced in these commits, but only for a subset of the files, for instance, just:
/src/foo.php
/src/lib/baz.php
How can this be achieved? Ideally just replaying it on top of my current branch would be best.