mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-11-21 18:40:39 +08:00
We would like the diff output of changes to the identity document to not collapse into separate hunks, but show all of the identity document in the diff. The way to do this is to set the number of context lines sufficiently high. It turns out that `u32::MAX` is too high for `xdiff`, which is commonly used on Windows. `xdiff` stores the context lines in a signed integer of 32 bits. Also, it appears to double line numbers when it merges hunks. Thus, a safe value seems to be half of `i32::MAX`.