When looking at a Pull-Request is there a simple way to see changes between specific commits?

Here's an example sceneario:

  1. I create a pull request for a branch. My work gets QA'd and/or code reviewed.
  2. I make a bunch of commits to respond to the comments and testing.
  3. My coworker who is reviewing my changes would like to be able to easily see in the pull request which files have changed since he last reviewed. There may be dozens of "changed" files in the branch and doesn't want to re-read everything.

Is there a way (add-on?) that one can easily see this?

2 answers

This widget could not be displayed.

In the pull request page there's a commit tab that shows all the individual commits that make up the pull request. There's no way I've seen to merge all the commits since an arbitrary time point (e.g. the last review pass) but the reviewer can at least use this to look at individual commits since the first review.

Not so good however if you make one commit and then a second that over-writes the changes in the first. If you keep your review comment updates down to a single commit (or squash them with git rebase into one commit prior to pushing) it would probablly make things easier on your reviewer.

This widget could not be displayed.

Hi Jeremy,

It depends a little on your workflow. If your co-worker makes logical commits (ie groups related changes), then I'm personally a big fan of the commenting on commits feature:

https://jira.atlassian.com/browse/STASH-2511

This is something we're hopefully (but I can't promise anything) going to be working on in the not-too-distant-future.

Otherwise, or additionally, you may be interested in something along the lines of being able to compare a branch to another commit. This work may fall somewhere under these features:

https://jira.atlassian.com/browse/STASH-3276

https://jira.atlassian.com/browse/STASH-2550

You may want to follow/vote on any of these issues you are interested in to receive further updates.

As for a plugin - I'm afraid there's none that I know of.

Cheers,

Charles

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

289 views 15 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you