mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-12 16:35:02 +00:00
a574987955
If commit_id[..prefix_len] < prefix, commit_id < prefix is obviously true. If commit_id[..prefix_len] == prefix, commit_id < prefix returns false. So slicing isn't needed. This makes commit_id_byte_prefix_to_pos() basically the same as segment_commit_id_to_pos(), and these two functions can be merged. |
||
---|---|---|
.. | ||
gen-protos | ||
src | ||
tests | ||
testutils | ||
build.rs | ||
Cargo.toml |