SourceTree + PCB git diff tool (allspice.io)

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.

Upvotes: 1

Views: 50

Answers (0)

Related Questions