mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 05:57:38 -04:00
The identity of a row is reported in the repo's terms already: the pane previewing the custom patch shows a diff of the two trees the patch was materialized into, and the paths of those trees are mapped back to the repo's files before anything sees them. Asking which file a row belongs to, which file navigation does, was the one query that skipped that step and answered with the tree's path. Pull the mapping out of inRepoTerms so that it can be applied to a bare path, and put filePaths through it. A menu listing the files of the diff will want to show them by name; where a renderer states the path of each side of a change, this also has both halves belong to one file rather than to the two trees. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>