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

I wonder what a diff looks like on code like this? Is it even a good idea to use a diff on something that dense rather than just re-sending the entire code?


By default git diff works on entire lines, but try this:

    git diff --word-diff=color --word-diff-regex=.
It highlights only the parts that have actually been changed/added/deleted.


I think a diff is just as valuable with this code. Of course understanding a diff also requires understanding the code but if you’re interested the repository is linked at the root of this thread so you could poke around.


Yes. The diffs tend to be quite small & obvious.




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

Search: