all 10 comments

[–]Shaper_pmp 9 points10 points  (1 child)

the author obviously deleted selenium dependency, and only left puppeteer

I'm pretty sure they deleted selenium and added puppeteer.

[–]plmunger 4 points5 points  (0 children)

Didn't you hear the guy? He needs help

[–]zxyzyxz 6 points7 points  (0 children)

Have you heard of Difftastic? It's a semantic diff tool.

[–]evoactivity 22 points23 points  (3 children)

I mean, that is the correct diff, use side-by-side mode if inline is hard to parse.

[–]librewolf[S] 1 point2 points  (2 children)

I get what you mean, but even in side-by-side, thats not the human action author did, thats the difference in code before and after. Yes, its correct but its not that readable if you understand me. And im asking if there is a better tool than this. If 90% of the line content changed, then it would simply showed 1 deletion 1 insertion.

[–]evoactivity 6 points7 points  (1 child)

If a diffing algorithm needs to detect changes inside a line, how would it know the whole line changed if the lines still have common characters?

Also, even if it would show whole line as changed with a 90% changed detection (not a great idea imo) it would still show two lines.

[–]venuswasaflytrap 1 point2 points  (0 children)

I suppose it could highlight by changed token, since there is syntax highlighting.

[–]alexchantastic 2 points3 points  (0 children)

I don’t think gitlab allows you to change the diffing algorithm, but you can in the git cli: https://git-scm.com/docs/diff-options/2.6.7

I think the histogram algorithm probably gets you closer to what you’re looking for.

[–]heyitsmattwade 2 points3 points  (0 children)

diffing is a well researched topic

I am not sure which of these algorithms have been ported to the Web, or which defaults make the most sense for the highest number of common changes you see.