5 ms·
We have a saying over here - TWGIF[1]. Any time someone checks in commented out code, they get chastised. 1: TWGIF - That's what git is for
by eric_h 12y ago
We have a saying over here - TWGIF[1]. Any time someone checks in commented out code, they get chastised.
1: TWGIF - That's what git is for
- loqi 12y agoI've gotten in the habit of adding trailing whitespace when I comment out code or do any printf debugging. It's still quick, but then git yells at me if I try and commit it.
- eric_h 12y agoThat's an interesting way of dealing with it - I have my text editor strip trailing whitespace and ensure there's a newline at the end of the file on every save, so it wouldn't work for me. That's okay though. I visually review the diff before I commit (almost) every time.