mirror of
https://github.com/gitbutlerapp/gitbutler.git
synced 2024-12-04 11:53:18 +03:00
bbeadd0c8d
The parsing logic for ownership ranges in the `FileOwnership` struct has been improved. Previously, it split the input string by ':' and then by ',' to extract the file path and ranges. However, this approach had issues with file paths containing ':' characters. The updated logic now iterates over the parts of the input string in reverse order. If a part can be parsed as a `Hunk` (range), it is added to the `ranges` vector. Otherwise, it is considered as part of the file path and added to the `file_path_parts` vector. Finally, the `file_path_parts` vector is joined with ':' to form the file path. This change ensures that file paths containing ':' characters are correctly parsed, allowing for more flexible and accurate parsing of ownership ranges. |
||
---|---|---|
.. | ||
icons | ||
src | ||
build.rs | ||
Cargo.toml | ||
tauri.conf.json | ||
tauri.conf.nightly.json | ||
tauri.conf.release.json |