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

This made me think of a couple other interesting things:

1. you can change which algorithm is used in git diff as multiple are supported

https://luppeng.wordpress.com/2020/10/10/when-to-use-each-of...

2. Google has an edit graph implementation in Go in the cmp package

https://github.com/google/go-cmp/blob/master/cmp/internal/di...




Even slightly further off topic, but probably useful in this context. Another top tip in git is that you can use `--color-moved=dimmed-zebra` to get a sense of code that was just moved but unchanged. More importantly, it directs you to code that differs in the midst of a move.

I used it yesterday to spot where a refactor that was moving code around lost changes during a rebase on master.




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

Search: