ZIm/crates/util/src
Cole Miller 1763dd714b
Worktree paths in git panel, take 2 (#26047)
Modified version of #25950. We still use worktree paths, but repo paths
with a status that lie outside the worktree are not excluded; instead,
we relativize them by adding `..`. This makes the list in the git panel
match what you'd get from running `git status` (with the repo's worktree
root as the working directory).

- [x] Implement + test new unrelativization logic
- [x] ~~When collecting repositories, dedup by .git abs path, so
worktrees can share a repo at the project level~~ dedup repos at the
repository selector layer, with repos coming from larger worktrees being
preferred
- [x] Open single-file worktree with diff when activating a path not in
the worktree

Release Notes:

- N/A
2025-03-06 22:55:28 +00:00
..
test Fix Clippy warnings in util crate (#8721) 2024-03-02 13:06:35 -05:00
arc_cow.rs Rust 1.85 (#25272) 2025-02-28 18:33:35 +01:00
command.rs windows: Set CREATE_NO_WINDOW for commands (#18447) 2024-11-20 16:52:38 -08:00
fs.rs chore: Clean up util dependencies. (#9247) 2024-03-13 00:10:49 +01:00
markdown.rs Display keymap errors on initial load (#23394) 2025-01-21 07:14:46 +00:00
paths.rs windows: Bring back restoration of tabs (#25870) 2025-03-01 17:18:34 +00:00
serde.rs Allow ignoring soft wraps when moving to line ends (#11153) 2024-05-02 12:30:45 +03:00
test.rs Canonicalize paths when running tests (#23655) 2025-01-26 14:56:07 +08:00
util.rs Worktree paths in git panel, take 2 (#26047) 2025-03-06 22:55:28 +00:00