In commit A I have a working feature 1 and a buggy feature 2. Several commits later, at commit B I fix the bug in feature 2, but feature 1 becomes buggy now. My strategy is to back at commit A, gradually add changes in each files and to see what breaks feature 1. I know that I can diff and copy-paste each chunk and each new file, but is there a way to automate this process? I'm thinking about something being similar to how the debugger works: it stops at each breaking point so that I can examine the result.
git bisect focuses on finding the first commit introduce the bug. The previous commit therefore is a working commit. What I want is to apply each chunk from the buggy one to the previous one automatically.
Is that possible?
git bisect: https://git-scm.com/docs/git-bisect