I review the code of my co-workers, and sometimes I review changes in a file I am not yet familiar with.
Within a pull request, is it possible to view a file within a commit as it is going to exist, but with changed lines flagged? Specifically, what I am looking for is a view in which:
- The entire file as it will exist is displayed.
- Deleted lines are indicated (but the contents of the deleted lines are not displayed).
- Changed lines are shown as they will exist, but it is indicated that the line has changed. The old line is not displayed.
So say I have a file being changed in a pull request. Here’s the old file:
1 Hi there! 2 How are you doing today, Bill! 3 I hope you have a great day!
and it’s being changed to this:
1 Hi, Bill! 2 I hope you have a great day! 3 Love, Dad
Is there a view where it is displayed as such:
1* Hi, Bill! - 2 I hope you have a great day! 3+ Love, Dad
And just to clarify, ideally I would not see a blank line in between lines 1 and 2.