ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib
Yuya Nishihara 4f8ae69367 diff: keep absolute ranges to support unchanged regions of different lengths
We have two options to achieve "diff --ignore-*-space":
 a. preprocess contents to be diffed, then translate hunk ranges back
 b. add hooks to customize eq and hash functions
I originally thought (a) would be easier, but actually, there aren't many
changes needed to implement (b). And (b) should have a fewer logic errors.

This patch removes assumption that each unchanged region has the same content
length. It won't be true if whitespace characters are ignored.
2024-10-01 21:24:02 +09:00
..
benches formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
gen-protos Use { workspace = true } to appease VS Code's Cargo.toml parser 2023-08-22 21:38:53 -07:00
proc-macros formatting only: switch to Item level import ganularity 2024-08-22 14:52:54 -04:00
src diff: keep absolute ranges to support unchanged regions of different lengths 2024-10-01 21:24:02 +09:00
tests revset: fix crash on "log --at-op 00000000 -r 'root()'" 2024-10-01 21:23:47 +09:00
testutils tests: remove temporary copy of workspace.repo_path() from TestWorkspace 2024-09-08 05:40:52 +09:00
Cargo.toml cargo: add "clru" dependency 2024-08-29 23:33:37 +09:00
LICENSE cargo: add LICENSE file to each crate we publish 2023-09-22 21:48:28 -07:00