Wilfred Hughes
|
f4b0d2f584
|
Rename JS sample file
|
2022-02-13 17:18:39 +07:00 |
Wilfred Hughes
|
469fc6b470
|
Don't log difftastic compile time when comparing
|
2022-02-13 17:16:45 +07:00 |
Wilfred Hughes
|
7f150ce883
|
Ignore temporary file from comparison tool
|
2022-02-13 17:16:30 +07:00 |
Wilfred Hughes
|
66f41c7053
|
Add reference file for current output hashes
|
2022-02-13 17:15:41 +07:00 |
Wilfred Hughes
|
3986bae12e
|
Helper script for regression testing on sample files
|
2022-02-13 17:06:11 +07:00 |
Wilfred Hughes
|
3c1c5649f4
|
Ensure --color is still respected
This was broken in the port to owo_colors. owo_colors does not have a
global override: the override function only affects if_supports_color.
|
2022-02-13 16:54:57 +07:00 |
Wilfred Hughes
|
714edd8f0c
|
Fix crash on empty substrings
|
2022-02-13 16:27:00 +07:00 |
Wilfred Hughes
|
653ebc8ad3
|
Allow debug printing of ColorOutput
|
2022-02-13 16:03:40 +07:00 |
Wilfred Hughes
|
1ef8a35fc1
|
Move function to the file it's used in
|
2022-02-13 15:40:06 +07:00 |
Wilfred Hughes
|
2595dcb93f
|
Optimise: use one iterator when slicing by codepoint
|
2022-02-13 15:35:50 +07:00 |
Wilfred Hughes
|
6004855206
|
Port to owo_colors
This library is faster and actively maintained.
Closes #107
|
2022-02-13 15:13:40 +07:00 |
Wilfred Hughes
|
d8ad9bec41
|
cargo fmt
|
2022-02-13 15:12:19 +07:00 |
Wilfred Hughes
|
675f3f77d0
|
Add TODO
|
2022-02-13 14:29:43 +07:00 |
Wilfred Hughes
|
c5d8aaf812
|
Improve usage instructions in hlp and for wrong number of arguments
|
2022-02-13 12:46:08 +07:00 |
Wilfred Hughes
|
84e5c3c700
|
Remove unnecessary lifetimes
|
2022-02-13 11:54:01 +07:00 |
Wilfred Hughes
|
043395a8c5
|
Add field docstrings for Hunk
|
2022-02-12 12:31:21 +07:00 |
Wilfred Hughes
|
84a2dc2dac
|
Fix missing context on misaligned hunks
Fixes #134
|
2022-02-12 12:26:00 +07:00 |
Wilfred Hughes
|
92cf448081
|
Add a basic unit test for matched_lines_for_hunk
|
2022-02-12 12:08:06 +07:00 |
Wilfred Hughes
|
ef5ae1ad8d
|
Add files from #134 to sample file collection
|
2022-02-12 11:10:23 +07:00 |
Wilfred Hughes
|
46301dbfa5
|
Don't crash on zero arguments
|
2022-02-12 11:04:52 +07:00 |
Wilfred Hughes
|
f2410bb600
|
Add TODO
|
2022-02-12 11:03:29 +07:00 |
Wilfred Hughes
|
4c391ea1c8
|
Don't repeatedly calculate the codepoint length when styling
|
2022-02-11 22:44:27 +07:00 |
Wilfred Hughes
|
a829511c1a
|
Write split_words as a loop without regular expressions
This function is hot on large textual diffs, taking 16% of total
runtime. This new implementation is several times faster.
|
2022-02-11 22:33:40 +07:00 |
Wilfred Hughes
|
ab1071cfda
|
Increase the default value of DFT_NODE_LIMIT
Closes #136
|
2022-02-11 21:54:24 +07:00 |
Wilfred Hughes
|
99269fcbdf
|
Remove obsolete comments
|
2022-02-11 09:26:58 +07:00 |
Wilfred Hughes
|
88a0c10c9d
|
Adding TODO
|
2022-02-09 00:07:54 +07:00 |
Wilfred Hughes
|
9c71d95755
|
Don't allocate strings in split_words()
It's faster, especially in large textual diffs (3% on my test file).
|
2022-02-09 00:04:53 +07:00 |
Wilfred Hughes
|
e561cdf580
|
Terminate after displaying a single column.
|
2022-02-08 23:50:15 +07:00 |
Wilfred Hughes
|
a190d3e591
|
Add TODO
|
2022-02-08 23:47:28 +07:00 |
Wilfred Hughes
|
76fc3118ac
|
Introduce a byte limit for files that are too big to parse
Default limit is 1 MB.
Fixes #131.
|
2022-02-08 23:44:50 +07:00 |
Wilfred Hughes
|
f004510143
|
Fix incorrect function name
This was causing infinite loops on non-trivial syntax trees.
|
2022-02-08 23:24:47 +07:00 |
Wilfred Hughes
|
30c342913e
|
Handle sliders of two steps
Fixes #132
|
2022-02-08 09:52:28 +07:00 |
Wilfred Hughes
|
f4061d87fa
|
Remove parser reference that was removed before release
|
2022-02-07 23:18:21 +07:00 |
Wilfred Hughes
|
d9ec560f0d
|
Roll version
|
2022-02-07 23:14:55 +07:00 |
Wilfred Hughes
|
2aaeb0e216
|
Update crossbeam-utils
We were previously on 0.8.5, which has been yanked.
|
2022-02-07 23:11:30 +07:00 |
Wilfred Hughes
|
32373f27a0
|
Improve wording in error message
|
2022-02-07 22:32:36 +07:00 |
Wilfred Hughes
|
1fa7f6450b
|
Don't print .. after the last line in a file
Fixes #118
|
2022-02-07 22:18:49 +07:00 |
Wilfred Hughes
|
ac1afdd1fc
|
Use `source_dims` variable name consistently
|
2022-02-07 21:58:38 +07:00 |
Wilfred Hughes
|
91566f8ac0
|
Rename Widths to SourceDimensions and clarify field names
|
2022-02-07 21:54:04 +07:00 |
Wilfred Hughes
|
7291900b56
|
Remove Hack parser
Waiting on upstream to merge my changes first.
|
2022-02-07 21:43:37 +07:00 |
Wilfred Hughes
|
85f2d7aa4b
|
Print each hunk immediately
This gives the user output sooner and is very marginally faster
overall too. It's also slightly less code.
Closes #128
|
2022-02-07 21:40:56 +07:00 |
Wilfred Hughes
|
ecb9e90d0a
|
Ensure that context::novel_lines handles NovelLinePart
Fixes #129
|
2022-02-07 21:11:58 +07:00 |
Wilfred Hughes
|
ab8e8e4485
|
Treat NovelLinePart as a change
Previously we'd treat it as unchanged, leading to incorrect text diffs
when words were added on a single side.
Fixes #122
|
2022-02-07 20:37:01 +07:00 |
Wilfred Hughes
|
908c2509d6
|
Rename UnchangedLinePart to NovelLinePart to reflect its usage
It's used in larger novel atoms (big comments and big string
literals).
|
2022-02-07 20:25:06 +07:00 |
Wilfred Hughes
|
72034f141d
|
Clarify MatchKind name for novel words
|
2022-02-07 20:24:01 +07:00 |
Wilfred Hughes
|
1d2f08ca75
|
Improve internal docs
|
2022-02-07 20:21:39 +07:00 |
Wilfred Hughes
|
2f591b9b86
|
Log the number of nodes when we exceed the limit
|
2022-02-07 09:33:50 +07:00 |
Wilfred Hughes
|
5186bffe83
|
Improve efficiency of line-based diffing
On my large JSON test file, this is a 2% reduction in time.
Test file is package-lock.json from
91b378e1fa
|
2022-02-06 23:53:35 +07:00 |
Wilfred Hughes
|
f3faf3ebaf
|
Reuse string slices rather than allocating new ones
This is a very small performance win on large textual diffs (0.2%).
|
2022-02-06 23:18:37 +07:00 |
Wilfred Hughes
|
67d296c47d
|
Improve wording for textual diffing headers
|
2022-02-06 17:27:00 +07:00 |