5 ms·
> It is valuable history: it is archaeological evidence of what has been attempted before. Except that is not readily accessible. When looking at a particular
by u801e 4y ago
> It is valuable history: it is archaeological evidence of what has been attempted before.
Except that is not readily accessible. When looking at a particular section of code, you could either run git blame, or run git log and filter it to only list commits that updated that file.
Either way, you're not going to easily be able to find what previous implementations were tried, or why they were not used compared to the current implementation.
But if you make a clean commit with the working implementation and include an explanation of what other approaches were tried and why they weren't used, then someone could use git blame to get the information pretty easily.