Pull requests with side-by-side diffs

By on December 8, 2011

Bitbucket now has the option to view file changes—IDE-style—with side-by-side diffs:

Side by side diff 2012

With both versions of the file shown in full with synchronized scrolling, you can more quickly grok what has changed, making code review easier in:

Show me more: expandable context

Unified diffs are great for reviewing small changes, but lines hidden beyond the 3 lines of context can leave out important information. We’ve updated unified diffs with clickable skipped sections to expand the context in the diff, instantly.

Expand diff

Using side-by-side diff

Side by side button 2012

Want to switch from unified mode to side-by-side mode? Simply click on any side-by-side button.

Try Side by side diff 2012

  • Gordon Schulz

    Very nice, well implemented from what I could test so far. Appreciate the ongoing work.

  • av

    this is awesome and useful!


  • Niko

    this is great tool with awesome features!

    but, please improve your wysiwym editor and markdown parser :)

  • Cassie

    Hi I am new to the Bitbucket. I am just practicing  the tutorial exercise. However, I can not see the side-by-side button. Anyone has any idea ?

  • Anonymous

    This is a cool feature, please allow to put comments in side-by-side view as well!

    • Cezary Draus

      +10, and also gerrit style patchsets so you can track diffs considering patchsets and comments!

  • Jónas Tryggvi Jóhannsson

    The side by side diffs in Bitbicket have somehow lost the green and red colours. It worked like pictured above until sometime this summer, which means that this diff method has become useless.

  • http://weblogs.asp.net/sfeldman/ Sean Feldman

    Is it possible to set side-by-side diff as default view?

  • sundy

     welcome to our website, we will provide the high quality product, still at etc. What, to pick their own one.Authentic football jerseys for all the fans expectations. However, these authentic jerseys are manufactured from high quality nike nfl jerseys, and contains many changes in design, in fact, be too expensive to buy an ordinary fan shirt does not pay. Compromise, repetitive cheap Authentic NFL Jerseys,  You really can. Professional football jersey, non-Hodgkin’s lymphoma, NBA, and replica nfl jerseys, football jerseys, excellent quality and competitive prices! Saved many forms.http://www.nikenfljersey-s.com/