3 ms·
Code never gets moved or refactored by someone other than the original author?
by triceratops 5y ago
Code never gets moved or refactored by someone other than the original author?
- kapp_in_life 5y agoSo then you checkout at the refactor commit and look through the blame to continue searching. If you have to repeat this more than a few times then the person has probably left the company or hasn't touched the code in years so its better to understand it yourself before modifying.
- triceratops 5y agoI'm embarrassed I didn't think of that before.
- kapp_in_life 5y agoNo worries, after typing it out I definitely feel like there should be an easier way to say "show me the stack of commits that touched this line(s) of code", and I'm sure some git wizard has a fancy one liner that could more easily do that.
- SassyGrapefruit 5y agoIf it gets moved then the blame will tell me who moved it, It will also tell me what the hash was before it was moved. That hash will have all the original information. Same for the refactor case.
- deleted 5y ago[deleted]