It would be really nice if git could use language servers to understand the AST of a diff. Imagine being able to look a the logical diff vs the visual diff.

Like a variable being (properly) renamed doesn’t change the logical flow so you could separate that from the visual/text change.

@seanhealy there are some diff tools that can be integrated into git that do some level of semantic analysis, I think. I don't think any use lang servers but usually tree sitter things usually used for syntax highlighting.
GitHub - Wilfred/difftastic: a structural diff that understands syntax 🟥🟩

a structural diff that understands syntax 🟥🟩. Contribute to Wilfred/difftastic development by creating an account on GitHub.

GitHub
@megmac Oh, fancy, thanks! Would be amazing if github could / would do this but even an external tool would be handy for some changesets.