3 ms·
Your VCS should really make it quite easy to go back through version history. If it's not doing that, that's a separate problem. Maybe it's just me, but I find
by problems 10y ago
Your VCS should really make it quite easy to go back through version history. If it's not doing that, that's a separate problem.
Maybe it's just me, but I find it an eyesore to have large blobs of commented out code laying around even for a short period (not to mention the odds of me remembering to delete them are close to nil).
- kough 10y agoHow do you remember which commit to diff against? How do you easily pick out the relevant parts of that diff once many changes have occurred - months or even years later?
- saghm 10y ago> How do you remember which commit to diff against? Ideally your commit message would indicate this. If you're always consistent in the language you use to describe similar changes, you can just search through your git log to find it. > How do you easily pick out the relevant parts of that diff once many changes have occurred - months or even years later? You can use `git show` to just look at that one commit where you deleted the code