Extension based merge tool

Hi There,

Is it possible to have a specific file extension handled by a different merge tool? e.g. *.txt opens in default, *.mycustomfile opens in another application?

 

Thanks in advanace

2 answers

This is not easily possible with SourceTree, since you can only have one merge tool.

Workaround: write a script that takes three arguments, tests for the file extension and then opens the right merge program and passes the arguments. If you then specify this as a merge tool in SourceTree, it should work as you want it.

 

Balazs,

can you please throw some more light on your suggestion. We use sourcetree as the frontend to our git setup. And, we are using kdiff3 as default merge tool. 

We want to use a third party merge tool for the .xml files only. I am not able to figure out how to configure sourcetree about it. But it looks you are right that sourcetree does not provide any such feature. Can you please guide more about that script think you have mentioned about.

 

Best Regards

Sandeep Anand

Suggest an answer

Log in or Join to answer
Community showcase
Brian Ganninger
Published Jan 23, 2018 in Sourcetree

Tip from the team: workflow and keyboard shortcuts

Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...

273 views 0 3
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot