diff --git a/CHANGELOG.md b/CHANGELOG.md index 5cb4e04a3..3835520fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -291,7 +291,7 @@ types. ### Diffing Fixed an issue where adding or removing blank lines would be ignored -by the textual diffing logic. +by the line-oriented diffing logic. Directory diffing now respects `.gitignore` files. @@ -512,8 +512,8 @@ UTF-16. Many files can be decoded as UTF-16 without decoding errors but produce nonsense results, so this heuristic seems to work better. Fixed an issue where difftastic would discard the last newline in a -file before diffing. This was most noticeable when doing textual diffs -and the last line had changed. +file before diffing. This was most noticeable when doing line-oriented +diffs and the last line had changed. ### Display @@ -543,12 +543,12 @@ Added support for Newick and Racket. ### Diffing -Difftastic now uses a textual diff on files that have any parse +Difftastic now uses a line-oriented diff on files that have any parse errors. The parse error limit defaults to 0, but it is configurable with `DFT_PARSE_ERROR_LIMIT` or `--parse-error-limit`. -Textual diffing now respects `--check-only`, consistent with syntactic -diffing. +Line-oriented diffing now respects `--check-only`, consistent with +structural diffing. ### Display @@ -603,13 +603,13 @@ Improved CSS parsing and HTML sublanguage parsing. Added an `--ignore-comments` option. -Improved textual diffing performance, particularly when the two files -have few lines in common. +Improved line-oriented diffing performance, particularly when the two +files have few lines in common. ### Display -Fixed an issue with unwanted underlines with textual diffing when -DFT_BYTE_LIMIT is reached. +Fixed an issue with unwanted underlines with line-oriented diffing +when DFT_BYTE_LIMIT is reached. Fixed a crash in inline display when the file ends with whitespace. @@ -640,8 +640,8 @@ constituents. `--display=inline` now respects `--tab-width`. -Fixed an issue with unwanted underlines with textual diffing when -DFT_GRAPH_LIMIT is reached. +Fixed an issue with unwanted underlines with line-oriented diffing +when DFT_GRAPH_LIMIT is reached. Improved syntax highlighting for predefined types in TypeScript. @@ -1241,9 +1241,9 @@ Fixed a crash when line wrapping produced an entirely blank line. ### Diffing -Improved word diffing (in both comments and textual diffs) when source -contains Unicode characters. Word splitting now uses the Unicode -alphabetic property. +Improved word diffing (in both comments and line-oriented diffs) when +the source contains Unicode characters. Word splitting now uses the +Unicode alphabetic property. Fixed a crash when comments contained multibyte Unicode characters. @@ -1308,12 +1308,12 @@ Improved minor display issues when one file is longer than the other. If given binary files, difftastic will now report if the file contents are identical. -Difftastic will now use a text diff for large files, rather than -trying to use more memory than is available. This threshold is +Difftastic will now use a line-oriented diff for large files, rather +than trying to use more memory than is available. This threshold is configurable with `--node-limit` and `DFT_NODE_LIMIT`. -Fixed a bug in the text diff logic where lines weren't shown if they -did not have both word additions and word removals. +Fixed a bug in the line-oriented diff logic where lines weren't shown +if they did not have both word additions and word removals. ### Command Line Interface @@ -1433,9 +1433,9 @@ Fixed a parsing performance regression introduced in 0.13. ### Diffing -Text diffing now has a standalone implementation rather than reusing -structural diff logic. This is significantly faster and highlighted -better. +Line-oriented diffing now has a standalone implementation rather than +reusing structural diff logic. This is significantly faster and +highlighted better. Improved performance when diffing two identical files. This is common when diffing directories. diff --git a/README.md b/README.md index 7666c503f..e2ef8369f 100644 --- a/README.md +++ b/README.md @@ -99,8 +99,8 @@ favourite tool, and I will link it in the README! ### What about parse errors? -By default, difftastic falls back to a line-oriented text diff -whenever parse errors are encountered. +By default, difftastic falls back to a line-oriented diff whenever +parse errors are encountered. This is a conservative choice to ensure that difftastic never claims two syntactically different files are the same. diff --git a/difft.1 b/difft.1 index cad3f88b5..b092f56c5 100644 --- a/difft.1 +++ b/difft.1 @@ -26,7 +26,7 @@ Set the background brightness. Difftastic will prefer brighter colours on dark backgrounds. .TP \f[B]\-\-byte\-limit\f[R] \f[I]LIMIT\f[R] -Use a text diff if either input file exceeds this size. +Use a line\-oriented diff if either input file exceeds this size. .TP \f[B]\-\-check\-only\f[R] Report whether there are any changes, but don\[cq]t calculate them. @@ -65,8 +65,8 @@ language or binary files), sets the exit code if there are any byte changes. .TP \f[B]\-\-graph\-limit\f[R] \f[I]LIMIT\f[R] -Use a text diff if the structural graph exceed this number of nodes in -memory. +Use a line\-oriented diff if the structural graph exceed this number of +nodes in memory. .TP \f[B]\-h, \-\-help\f[R] Print help information. @@ -108,7 +108,8 @@ When multiple overrides are specified, the first matching override wins. .RE .TP \f[B]\-\-parse\-error\-limit\f[R] \f[I]LIMIT\f[R] -Use a text diff if the number of parse errors exceeds this value. +Use a line\-oriented diff if the number of parse errors exceeds this +value. .TP \f[B]\-\-skip\-unchanged\f[R] Don\[cq]t display anything if a file is unchanged. diff --git a/difft.1.md b/difft.1.md index 366321698..a993cc442 100644 --- a/difft.1.md +++ b/difft.1.md @@ -35,7 +35,7 @@ OPTIONS **\-\-byte-limit** _LIMIT_ -: Use a text diff if either input file exceeds this size. +: Use a line-oriented diff if either input file exceeds this size. **\-\-check-only** @@ -71,7 +71,7 @@ OPTIONS **\-\-graph-limit** _LIMIT_ -: Use a text diff if the structural graph exceed this number of nodes in memory. +: Use a line-oriented diff if the structural graph exceed this number of nodes in memory. **-h, \-\-help** @@ -111,7 +111,7 @@ OPTIONS **\-\-parse-error-limit** _LIMIT_ -: Use a text diff if the number of parse errors exceeds this value. +: Use a line-oriented diff if the number of parse errors exceeds this value. **\-\-skip-unchanged** diff --git a/homepage/index.html b/homepage/index.html index cc6bc29c4..3b9b0c08f 100644 --- a/homepage/index.html +++ b/homepage/index.html @@ -1,4 +1,4 @@ - +
@@ -94,8 +94,8 @@ Difftastic parses your code with tree-sitter. Unlike a line-oriented text diff, difftastic understands that - the inner expression hasn't changed here. + >. Unlike a line-oriented diff, difftastic understands that the + inner expression hasn't changed here. @@ -189,9 +189,7 @@ type="image/svg+xml" > -