Add the possibility to compare 2 different files
Description
It would be useful to improve the compare feature with the possibility to not only specify the hashes but also different paths. In our projects we sometimes have to duplicate classes and change only a few lines in that new/copied class (so, that's not a rename).
But in the Merge Request changes, the whole new file is displayed as new. So it would be helpful if we'd had such a feature to compare the new file against the one it was originated from, just to be able to spot only the changes between them two.
Proposal
- I think that the most natural proposal would be to improve the existing "compare" feature to allow the user to select as well on both sides of the comparison same/or different path(s) to the file(s) to compare.
- Or, maybe add a way to select one file when browsing files in one hash (like marking this file as 'selected' somehow), then when browsing the files of the other has, have a button for instance on the files to be able to
diff
against the file currently 'selected' before.
Links / references
Similar to #34462 (moved) but with the ability to specify different paths