4 ms·
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.wordp
by leetrout 4y ago
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-the-git-diff-algorithms/ 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/diff/diff.go#L138 https://github.com/google/go-cmp/blob/master/cmp/internal/di...
- aidos 4y agoEven 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.