diff2html
diffsitter
Our great sponsors
diff2html | diffsitter | |
---|---|---|
6 | 15 | |
2,703 | 1,517 | |
- | - | |
7.4 | 8.7 | |
7 days ago | 4 days ago | |
TypeScript | Rust | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
diff2html
- Unified versus Split Diff
-
Good Report Generation Tool for Branch Diffs / Pull Request?
If html is an option, something like https://diff2html.xyz/
-
Difftastic, the Fantastic Diff: How it works
My favorite diff tool is diff2html - see the diff in your browser as HTML!
https://diff2html.xyz/
Install the CLI, run the command (alias diff='diff2html -s side') - I run this at least every time before committing to quickly see all I've done.
-
Nova 9
Try diff2html-cli -- you alias in your terminal "diff" to the diff2html command and you get a beautiful HTML diff (side-by-side or inline) of the current changes you've made (or against a branch you choose).
https://diff2html.xyz/
-
Git Techniques at Risk Ledger
My favorite git-related thing is `diff2html` so I set up an alias `diff` which will open the browser and show me all the changes I've made to the branch:
https://diff2html.xyz/
-
Git is my buddy: Effective Git as a solo developer
Relevant useful tool: diff2html - a CLI that lets you quickly see an HTML output of all uncommitted the changes you've made (or compare against a branch).
https://diff2html.xyz/
I have an alias `alias diff='diff2html -s side --ig package-lock.json'` which shows a side-by-side comparison of my changes. Highly recommend!
diffsitter
-
AST-grep(sg) is a CLI tool for code structural search, lint, and rewriting
Or https://github.com/afnanenayet/diffsitter. I've tried both and I like them. No preference or notable opinions on them yet!
-
Enable new diff option linematch (#14537) · neovim/neovim@04fbb1d
For git diff's I've been using https://github.com/afnanenayet/diffsitter
-
Difftastic, the Fantastic Diff: How it works
One more tree-sitter based diffing tool - diffsitter
https://github.com/afnanenayet/diffsitter
-
What Comes After Git
Several threads here point to difftastic: https://github.com/Wilfred/difftastic
I know a lot of people who have a lot of hope for diffsitter (or something like it): https://github.com/afnanenayet/diffsitter
Personally, I think the reason most "good" semantic diff tools are proprietary is that they are huge amounts of effort that are mostly "hacks" and "heuristics" bandaged together in ways that people don't want to let out how the sausage was made.
But I also "general, language agnostic AST-based semantic diff" is a mountain peak we cannot reach (probably ever), and I believe my experiments found an interesting local maxima that people are maybe sleeping on (lexer-based diffs rather than parser-based diffs): https://github.com/WorldMaker/tokdiff
-
Fast Kernel Headers: Tree -v1: Eliminate the Linux kernel's "Dependency Hell"
https://github.com/afnanenayet/diffsitter there are quiet a few projects such as this one, attempting to solve the issue. :)
-
Thinking about programming systems and not just languages and environments
There’s an interesting project in the semantic diff/merge space that I have been keeping an eye out for https://github.com/afnanenayet/diffsitter
-
What if Git worked with Programming Languages?
I have never used any of them, but it look like tree-sitter based diff tools are exactly what you are searching for (like difftastic, gumtree or diffsitter).
I believe Unison is the only attempt to do this at a programming language/environment level.
For Git diffs, there is Diffsitter, which uses Tree Sitter to generate semantic diffs of code files: https://github.com/afnanenayet/diffsitter
I have not used it, but it is high on my todo list.
-
Difftastic: A syntactic diff tool
Looks great, I'll try it! FYI, there is a very similar project called diffsitter https://github.com/afnanenayet/diffsitter
- diffsitter - a tree-sitter based AST difftool to get meaningful semantic diffs
What are some alternatives?
jsPDF - Client-side JavaScript PDF generation for everyone.
difftastic - a structural diff that understands syntax 🟥🟩
PDF.js - PDF Reader in JavaScript
semantic-source - Parsing, analyzing, and comparing source code across many languages
pdfmake - Client/server side PDF printing in pure JavaScript
nvim-treesitter-context - Show code context
hyperterm - A terminal built on web technologies
tree-sitter-json - JSON grammar for tree-sitter
Papa Parse - Fast and powerful CSV (delimited text) parser that gracefully handles large files and malformed input
dark - Darklang main repo, including language, backend, and infra
zeit - Clock and task scheduler for node.js applications, providing extensive control of time and callback scheduling in prod and test code
git-merge-driver - Example of how to configure a custom git merge driver