- 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)
I’m surprised that after almost 20 years of versioning C code, git still manages to assign the closing brace of a function wrongly.
Because text is text and all
}are the same.
laughs in IntelliJ
Me adding one if statement around around a code block. Ah shit I guess I own the whole function now.
Beyond Compare is awesome and handles this and many other things quite well.
If you’re going to rearrange code, have that as a separate check in from changing code.
Most diff tools have an option to ignore leading or trailing whitespace changes.
deleted by creator
Try difftastic! https://github.com/Wilfred/difftastic
That logo tho. oh noooooo
It doesn’t actually detect moved code, though, like
git diffcan? 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.
How do you expect it to be shown though?
For example, on side by side views, you can draw a box around it on both sides, and draw a line connecting the two
I think Sublime Merge does this with the conflict resolution tool




