jj/lib
B Wilson 01a9ce0c71 diff: Treat multi-byte UTF-8 runes as word characters
Inline diffs on multi-byte UTF-8 characters would match individual
bytes, causing garbled diffs in some cases. For example, replacing
`⊢` with `⊣`, which differ in the final byte only, caused the
diff to display a diff of the bytes instead the character.

This commit uses a workaround present in Mercurial by treating all
bytes 0x80 and above as word characters, causing any multi-byte
character to be treated as a word and not segmented.

https://www.mercurial-scm.org/repo/hg/file/6.3.3/mercurial/patch.py#l51
2023-03-30 00:06:56 +09:00
..
benches benches: group unchanged/modified/reversed-line diffs together 2023-03-27 23:38:56 +09:00
gen-protos cargo: bump prost-build from 0.11.7 to 0.11.8 2023-02-28 16:13:14 +00:00
src diff: Treat multi-byte UTF-8 runes as word characters 2023-03-30 00:06:56 +09:00
tests revset: add latest(candidates, count) predicate 2023-03-25 23:48:50 +09:00
testutils index: load store based on type recorded in .jj/repo/index/type 2023-03-11 22:22:46 -08:00
build.rs lib: replace protobuf crate with prost 2022-12-22 07:04:35 -08:00
Cargo.toml cargo: bump serde_json from 1.0.94 to 1.0.95 2023-03-28 10:16:06 -07:00