I have a repo with a single branch and 10 commits. I want to create a patch for all the commits affecting two of the files in the repo, say for example commits #3, 4, and 7, ie not the head, not in sequence, and not labeled. I've kept the scope of commits small so they don't affect unrelated files.
How should I do this?
I've looked at lots of examples online including cherry-pick, squash, and checking out a specific commit in a temp branch, but none of these appear to be close to my scenario, and my head is spinning at all the possibilities.