git: Use worktree paths in the panel (#25950)

This PR changes the git panel to use worktree-relative paths for its
entries, instead of repository-relative paths as before. Paths that lie
outside the active repository's worktree are no longer shown in the
panel. Note that in both respects this is how the project diff editor
already works, so this PR brings those two pieces of UI into harmony.

Release Notes:

- N/A
This commit is contained in:
Cole Miller 2025-03-03 18:32:03 -05:00 committed by GitHub
parent 6faa7cd722
commit e7b3b8bf03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 233 additions and 96 deletions

1
Cargo.lock generated
View file

@ -5439,6 +5439,7 @@ dependencies = [
"panel",
"picker",
"postage",
"pretty_assertions",
"project",
"schemars",
"serde",