All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding diffsitter: A Tool for Semantic Diffs Based on AST

By

mihau

10mo ago· 5 min readenCode

Summary

diffsitter is a tool that creates semantically meaningful diffs by computing the difference on the abstract syntax tree (AST) of a file rather than the text contents. It uses parsers from the tree-sitter project and supports languages compatible with tree-sitter.

Key quotes

· 3 pulled
"diffsitter creates semantically meaningful diffs that ignore formatting differences like spacing."
"Contributions are always welcome!"
"diffsitter uses the parsers from the tree-sitter project to parse source code."
Snippet from the RSS feed
A tree-sitter based AST difftool to get meaningful semantic diffs - afnanenayet/diffsitter

You might also wanna read