Suppose I made number of changes in the code and see that code-result unexpectedly has been corrupted. I want to find which change corrupted the result.
It is clear how to find the bugged change if it is contained in some commit.
But how to find the bugged change if it was not in a separate commit, but it was made during history rewriting?
So few days ago I had git history like:
commit00 ( contains no result.txt )
commit01 ( contains no result.txt )
...
commit10 ( contains version1 of result.txt )
commit11 ( contains version1 of result.txt )
...
commit20 ( contains version2 of result.txt )
all versions of results.txt was fine. Then I made few times history rewriting like:
<make changes>
git commit -m "changes to attach to commit0x"
git rebase -i commit0x
<use squash to attach changes to commit0x>
I don't remember which changes I made this way. But now I see that when I go to commit10 or commit20 my program gives different results (not version1 and version2 results).