Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Extension based merge tool

Matt N January 28, 2015

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

0 votes
Sandeep Anand September 10, 2015

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

0 votes
Balázs Szakmáry
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 28, 2015

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.

 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events