Describe how difftastic works in FAQ

pull/647/head^2
Wilfred Hughes 2024-03-06 21:41:58 +07:00
parent 2b19e59aeb
commit e208720d64
1 changed files with 10 additions and 0 deletions

@ -132,6 +132,16 @@ $ difft --check-only --exit-code before.js after.js
This will set the exit code to 0 if there are no syntactic changes, or
1 if there are changes found.
### How Does It Work?
Difftastic treats structural diffing as a graph problem, and uses
Dijkstra's algorithm.
My [blog
post](https://www.wilfred.me.uk/blog/2022/09/06/difftastic-the-fantastic-diff/)
describes the design, and there is also an [internals section in the
manual](https://difftastic.wilfred.me.uk/diffing.html).
## Translation
+ [Chinese](./translation/zh-CN/README-zh-CN.md)