• 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)

27 points
*
3 points

That’s awesome. I wonder how it’d handle moving plus a small change.

Too bad GitHub doesn’t support it yet afaict. But at least it’s not all diff tools.

permalink
report
parent
reply
9 points

Most diff tools have an option to ignore leading or trailing whitespace changes.

permalink
report
reply
15 points

I think OP meant moving a code block up or down in a file, not left or right

permalink
report
parent
reply
3 points

Yes, thank you. I probably should have been more clear

permalink
report
parent
reply
17 points

Me omw to shift the entire codebase to the right by one tab and claim authorship over every line in the project with a completely untraceable commit

permalink
report
parent
reply
83 points

I’m surprised that after almost 20 years of versioning C code, git still manages to assign the closing brace of a function wrongly.

permalink
report
reply
8 points

Because text is text and all } are the same.

permalink
report
parent
reply
18 points

laughs in IntelliJ

permalink
report
reply
13 points

that’s not even a joke, I’m using intellij community as a merge and diff tool exclusively. it doesn’t support the language I want but even without it it’s better then anything else.

permalink
report
parent
reply
4 points
permalink
report
reply
3 points

That logo tho. oh noooooo

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

Programmer Humor

!programmerhumor@lemmy.ml

Create post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.

Community stats

  • 6.8K

    Monthly active users

  • 1.4K

    Posts

  • 32K

    Comments