For each code defect, I create a separate branch. When the defect is fixed, I merge this branch into master, so I have a story as shown below (we see two branches with corrections):
defect1 fix defect2 fix a---b---c---d e---f / \ / \ ---o---1---x---y---z---2---o---3---w---4---o---
The question is how to get diff for fix1 (between the start of branch (1) and the end of branch (2)) or fix2 (the difference between (3) and (4)) at any time (for example, for any closed defect in the past )
Update: the actual issue is determining the SHA amounts from a and d or e and f to execute the next obvious diff diff <commit> <commit>
Alexander Nikolayev
source share