Hacker News new | past | comments | ask | show | jobs | submit login

cool idea!

have you thought about using the ast representation to regenerate "canonicalized" versions of the source files upon which you can then represent the diffs (and context)?




Sorry I'm not sure I quite follow by what you mean by canonical, do you something like applying a standard style?


yeah, but more aggressive. for both the left and right side, parse to an ast and then go back to text, but do things like enforce orderings on things where orderings don't matter and strip out comments, and force whitespace to be clearly defined... so you have a "just the facts" view into what changed that plays nice with existing diff tools.

(i'm not suggesting this be committed, but rather it be a view)




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

Search: