mirror of
https://github.com/martinvonz/jj.git
synced 2024-12-28 23:55:54 +00:00
03ae1b747c
I had initially hoped that the type-safety provided by the separate `FileRepoPath` and `DirRepoPath` types would help prevent bugs. I'm not sure if it has prevented any bugs so far. It has turned out that there are more cases than I had hoped where it's unknown whether a path is for a directory or a file. One such example is for the path of a conflict. Since it can be conflict between a directory and a file, it doesn't make sense to use either. Instead we end up with quite a bit of conversion between the types. I feel like they are not worth the extra complexity. This patch therefore starts simplifying it by replacing uses of `FileRepoPath` by `RepoPath`. `DirRepoPath` is a little more complicated because its string form ends with a '/'. I'll address that in separate patches. |
||
---|---|---|
.. | ||
test_bad_locking.rs | ||
test_commit_builder.rs | ||
test_commit_concurrent.rs | ||
test_diff_summary.rs | ||
test_evolution.rs | ||
test_git.rs | ||
test_index.rs | ||
test_init.rs | ||
test_load_repo.rs | ||
test_merge_trees.rs | ||
test_mut_repo.rs | ||
test_operations.rs | ||
test_revset.rs | ||
test_revset_graph_iterator.rs | ||
test_view.rs | ||
test_working_copy.rs | ||
test_working_copy_concurrent.rs |