File level diff between two branches or commits
Description
You can view a file snapshot for a branch or commit and given a commit, you can view the overall diff, but it would be handy to see the changes in a file between two commits or branches. The genesis of this proposal is merge requests - showing just changed snippets of code can make it difficult to understand the change in context. It's often useful to understand the structure of the whole file, the contents of method calls used, etc. in order to properly review a change.
Proposal
Enable full file diff between two commits or branches in the code browser. If viewing from the context of a merge request, it would be nice for any comments added to show up on the merge request.
Links / references
Documentation blurb
Overview
This would improve the usefulness of code browsing at a file level. From Blame, you could pre-populate the two commits and the user would be able to see all the changes that were made to that one file instead of the current option, which links you to the whole commit. From merge requests, you could pre-populate with the MR branch and the destination branch.
Use cases
Reviewers of merge requests.
Feature checklist
Make sure these are completed before closing the issue, with a link to the relevant commit.
-
Feature assurance -
Documentation -
Added to features.yml