Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Wouldn't that result in having to reorient yourself between the formatted/non-formatted files when comparing commits and messy code that is being worked on? Mind, I do value auto-formatting but wonder about the navigational costs when used this way.


maybe code should be stored with no formatting, only the required whitespace, and the editors/viewers are responsible for applying formatting. Then formatting will never cause confusion in diffs.


The hook is just a safeguard, but ideally your editor should run the same code.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: