How to make TortoiseGit not open SVG files with image compare tool

36 Views Asked by At

I have an svg file in Git and I want to see a diff of local changes. I would expect the config setting for which files are opened with TortoiseGitIDiff to be in TortoiseGit settings/Diff Viewer/Advanced, but there is no entry for .svg there. Where is this association made and how do I change it?

1

There are 1 best solutions below

1
MrTux On

The defaults for images are hard-coded in TortoiseGit source code (cf. https://gitlab.com/tortoisegit/tortoisegit/-/blob/28d2301c16d78ac94f33e996cf606fa10bd830da/src/TortoiseProc/AppUtils.cpp#L279).

You can easily set up a different tool by just adding e.g. ".svg" in the TortoiseGit settings/Diff Viewer/Advanced dialog.