gitbutler/crates/gitbutler-project
Sebastian Thiel d63babff0a
Assure that Project::path can be compared reasonably with other paths (#5096)
When testing paths for prefix-matches it's important they are all normalized in
the same fashion.

`canonicalize()` is very particular about canonicalizing Windows paths, which
makes it easy for these paths to not be compatible to other absolute-looking
paths.

The difficulty here is to get the right trade-off between performance and
safety, e.g. we wouldn't want these canonicalized Windows paths to be used
anywhere as they are very uncommon (and don't even work everywhere).
2024-10-11 21:59:51 +02:00
..
src Assure that Project::path can be compared reasonably with other paths (#5096) 2024-10-11 21:59:51 +02:00
tests re-enable now working test thanks to gitoxide fix 2024-10-11 18:59:38 +02:00
Cargo.toml Use new 'self-contained' style for integration tests 2024-10-11 07:18:28 +02:00