35

I started to use SourchTree recently.

The default format of the diff is to use "-" or "+" to show changes.
I like to have 2 files side-by-side and show the change line to line.

However, I cannot find the option to change the format. Can you help?

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
user1443721
  • 1,110
  • 2
  • 14
  • 33

3 Answers3

15

No, I really hope to see that feature in some of the future releases.

Urda
  • 5,460
  • 5
  • 34
  • 47
Filip
  • 2,244
  • 2
  • 21
  • 34
2

If you don't see any "side-by-side diff" button on the diff view, then a good workaround is to setup a difftool in your SourceTree.

See for instance "How to use Meld as a merge tool with SourceTree on Windows?".

Using an external diff tool (supporting natively a side-by-side view) is more reliable than the native tool options here.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
1

There is a way to view both side-by-side as well as inline both at the same time by using a tool in Source Tree.

  1. Download and install Perforce Merge/Diff tool
  2. Now open your repo in source tree and click on 3 dots within circle icons on the top right corner in UI now and click on External Diff a new window will open which will show all the changes side-by-side as well inline (Worked for me in Mac Book Pro M1)!!

For more info can refer to corresponding Jira ticket for Source Tree: https://jira.atlassian.com/browse/SRCTREEWIN-1296

enter image description here

Ryan M
  • 18,333
  • 31
  • 67
  • 74
Wasit Shafi
  • 854
  • 1
  • 9
  • 15
  • This isn't really a solution as it basically means use something other than SourceTree. I would like to do this yet where I work we are very restricted in what we can download and install and have only been given SourceTree or command-line git. This problem is something I'm sure many face in today's somewhat paranoid cyber-security world. – Alan Carlyle Sep 07 '22 at 00:28
  • Thanks but, sometimes Sourcetree can't recognize which external diff tool to use for the purpose. To tell more robustly Sourcetree: On the main window right click => Custom Actions => Edit => Diff (in the header menu) => Visual Diff Tool Now you can select the tool you downloaded before. * Sourcetree: Version 4.2.1 (248) – Ibrahim Sakaci Feb 24 '23 at 15:17