Comparing commits after rebasing #62568
Replies: 4 comments 2 replies
-
Related: https://github.com/orgs/community/discussions/3478 particularly comment https://github.com/orgs/community/discussions/3478#discussioncomment-3697339 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I would be very interested in seeing a solution for this as well. Could we have some tooling which compares the latest push with the target branch. All changes which are in the target branch are greyed out/marked in some way? |
Beta Was this translation helpful? Give feedback.
-
This is the single most painful thing about Github right now. I don't even know how much time I am spending teaching every single contributor about The "compare" link is also far from ideal: there can be many force-pushes between my last review and now. Github will show a compare link for some of them (but not all, a bunch of adjacent force pushes get collapsed so that only the last one has a "compare link"), but I still have to look at all of them separately. What would be ideal is a button next to my review that says "compare with current version" and that covers all force-pushes since that review. |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Product Feedback
Body
In our workflow for pull requests, we quite often have a situation where:
GitHub recently added a "Compare" button in the PR history which makes this very easy. That's brilliant - thank you so much for adding this!
Sometimes, we run into a similar situation, where:
main
main
then force-pushesIn this situation, what we need is to compare not the end-state of the old and new commits, but rather the changes made in the old and new commits, so that the reviewer can confirm that they differ in the requested way.
The git CLI provides a tool called range-diff which makes this possible (though hardly easy). Would it be possible to provide something in the GitHub UI which would allow us to make these comparisons?
Beta Was this translation helpful? Give feedback.
All reactions