AI 改完代码顺手重排了格式,满屏红绿怎么看?Difftastic 按语法比较,能把换行和实际改动分开看。图为官方示例。
MIT 开源。它只展示差异,不生成可应用的补丁;语法解析失败时默认退回逐行比较。
Wilfred/difftastic t.co
5 likes · 278 views
2️⃣ Difftastic 🔮
A structural diff. It parses both files with tree-sitter and compares syntax trees, so a pure reformat reports "No syntactic changes."
Try: brew install difftastic && git -c diff.external=difft diff (needs uncommitted changes)
🔗 Wilfred/difftastic
2 views
Difftastic 0.72 is out! This is a pretty big release:
* Improvements in *16* languages!
* Fixed some jj issues
* Fixed display issues, especially in inline mode
* Better performance, particularly in some pathological cases
github.com/Wilfred/difftastic/releases/tag/0.72.0
1 like
Difftastic 0.72 is out! This is a pretty big release:
* Improvements in *16* languages!
* Fixed some jj issues
* Fixed display issues, especially in inline mode
* Better performance, particularly in some pathological cases
github.com/Wilfred/difftastic/releases/tag/0.72.0
7 likes · 350 views
I integrated Difftastic into GitComet to make JSX diffs easier to read
Are you also getting tired to review noisy JSX / TSX changes just to realize the actual change was 1 prop?
Thats what I wanted to improve in GitComet. While looking for options I found Difftastic.
It uses Tree-sitter to understand code structure ... the same one GitComet also use! My immediate feeling was: this has to be tried out!
After testing it I knew it had to be included in the current release. Difftastic helps to show the relevant changes ignoring whitespace and formatting.
Difftastic diff really shines when viewing HTML, JSX/TSX and similar XML like syntaxes.
I created a demo how to enable it in GitComet 0.3.1 take a look!
I integrated Difftastic into GitComet to make JSX diffs easier to read
Are you also getting tired to review noisy JSX / TSX changes just to realize the actual change was 1 prop?
Thats what I wanted to improve in GitComet. While looking for options I found Difftastic.
It uses Tree-sitter to understand code structure ... the same one GitComet also use! My immediate feeling was: this has to be tried out!
After testing it I knew it had to be included in the current release. Difftastic helps to show the relevant changes ignoring whitespace and formatting.
Difftastic diff really shines when viewing HTML, JSX/TSX and similar XML like syntaxes.
I created a demo how to enable it in GitComet 0.3.1 take a look!
difftastic diffs code by syntax tree instead of by line, so a reformatted file stops looking like a rewrite. It plugs into git as an external diff, and it's one config line to drop again.
Wilfred/difftastic
1 like · 160 views
Mentions
AI 改完代码顺手重排了格式,满屏红绿怎么看?Difftastic 按语法比较,能把换行和实际改动分开看。图为官方示例。 MIT 开源。它只展示差异,不生成可应用的补丁;语法解析失败时默认退回逐行比较。 Wilfred/difftastic t.co
2️⃣ Difftastic 🔮 A structural diff. It parses both files with tree-sitter and compares syntax trees, so a pure reformat reports "No syntactic changes." Try: brew install difftastic && git -c diff.external=difft diff (needs uncommitted changes) 🔗 Wilfred/difftastic
Difftastic 0.72 is out! This is a pretty big release: * Improvements in *16* languages! * Fixed some jj issues * Fixed display issues, especially in inline mode * Better performance, particularly in some pathological cases github.com/Wilfred/difftastic/releases/tag/0.72.0
Difftastic 0.72 is out! This is a pretty big release: * Improvements in *16* languages! * Fixed some jj issues * Fixed display issues, especially in inline mode * Better performance, particularly in some pathological cases github.com/Wilfred/difftastic/releases/tag/0.72.0
I integrated Difftastic into GitComet to make JSX diffs easier to read Are you also getting tired to review noisy JSX / TSX changes just to realize the actual change was 1 prop? Thats what I wanted to improve in GitComet. While looking for options I found Difftastic. It uses Tree-sitter to understand code structure ... the same one GitComet also use! My immediate feeling was: this has to be tried out! After testing it I knew it had to be included in the current release. Difftastic helps to show the relevant changes ignoring whitespace and formatting. Difftastic diff really shines when viewing HTML, JSX/TSX and similar XML like syntaxes. I created a demo how to enable it in GitComet 0.3.1 take a look!
I integrated Difftastic into GitComet to make JSX diffs easier to read Are you also getting tired to review noisy JSX / TSX changes just to realize the actual change was 1 prop? Thats what I wanted to improve in GitComet. While looking for options I found Difftastic. It uses Tree-sitter to understand code structure ... the same one GitComet also use! My immediate feeling was: this has to be tried out! After testing it I knew it had to be included in the current release. Difftastic helps to show the relevant changes ignoring whitespace and formatting. Difftastic diff really shines when viewing HTML, JSX/TSX and similar XML like syntaxes. I created a demo how to enable it in GitComet 0.3.1 take a look!
difftastic diffs code by syntax tree instead of by line, so a reformatted file stops looking like a rewrite. It plugs into git as an external diff, and it's one config line to drop again. Wilfred/difftastic