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

8 Comments

  • Gordon Schulz
    Posted December 9, 2011 at 9:25 am | Permalink

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

  • av
    Posted December 9, 2011 at 3:07 pm | Permalink

    this is awesome and useful!

    Thanks

  • Niko
    Posted January 8, 2012 at 9:36 am | Permalink

    this is great tool with awesome features!

    but, please improve your wysiwym editor and markdown parser 🙂

  • Cassie
    Posted March 15, 2012 at 8:00 pm | Permalink

    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
    Posted July 22, 2013 at 12:10 am | Permalink

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

    • Cezary Draus
      Posted December 11, 2015 at 1:27 am | Permalink

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

  • Jónas Tryggvi Jóhannsson
    Posted October 2, 2015 at 1:38 am | Permalink

    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.

  • Posted November 7, 2015 at 10:53 am | Permalink

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