1

I am using SourceTree latest version (as of 13/01/2025) v3.4.21 and I have a problem while using a third-party tool that helps me see grpahically the diffs between versions for PCB files in Altium (.SchDoc and .PcbDoc).

The tool is allspice.io diff tool (https://allspice.io/diff-tool).

I could install the tool in my Windows11 machine with no problems. The SourceTree app opens automatically the .SchDoc files but not the .PcbDoc files. I need to press "External diff" button for those.

GIF demonstrating what happens

Why is that?

The configuration for allspice.io diff tool states:

Configure for Git Bash

After the install, you can add a text file named .gitattributes with the following line to the top level of any Git directory you want to enable allspice.io diff in:

*.schdoc diff=allspice *.pcbdoc diff=allspice

After this, you can run Git diff just as you would with text-based files.

Now, after implementing this configuration to one of my Git directories, I can perfectly see any *.SchDoc and the diff as promised by allspice in SourceTree.

If I want to see *.PcbDoc files I cannot see them, unless I press the "External Diff" button.

My .gitattributes file is:

*.pcbdoc diff=allspice
*.schdoc diff=allspice
*.PcbDoc diff=allspice
*.SchDoc diff=allspice

And my .gitconfig file is:

[user]
email = [email protected]
name = User Name

[diff "allspice"]
command = 'C:/Users/MariaSenyer/AppData/Local/Programs/allspice/resources/bin/diff.sh'
[difftool "sourcetree"]
cmd = "'' "

[mergetool "sourcetree"]
cmd = "'' "
trustExitCode = true

I tried using the cmd line to open those files, and it works just fine. My assumption is that the problem comes with SourceTree, maybe I have something bad with my configuration files.

2
  • What is the behaviour of running git diff somefile.PcbDoc from the command line? Commented Jan 14 at 16:45
  • @hlovdal it works just fine. The problem comes when interacting with SourceTree Commented Jan 15 at 8:21

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.