- Adding a line: ✅
- Removing a line: ✅
- Modifying a line: ✅
- Moving a codeblock: ❌ i see you’ve rewritten everything, let me just highlight it all.
RIP reviewers on my PR.
(Meme created by my coworker)
Most diff tools have an option to ignore leading or trailing whitespace changes.
I think OP meant moving a code block up or down in a file, not left or right
I’m surprised that after almost 20 years of versioning C code, git still manages to assign the closing brace of a function wrongly.
laughs in IntelliJ
Try difftastic! https://github.com/Wilfred/difftastic
It doesn’t actually detect moved code, though, like git diff
can? I gave it a shot and also there’s a couple issues open about it, e.g. https://github.com/Wilfred/difftastic/issues/520 .
Other than that, difftastic is quite nice.