Using different merge tools with different data files

Hello everybody,

we want to use different merge tools for different data files.

For example:

We created the mergetools tool1 and tool2. We can swap manually between this both tools (tool1 or tool2). 

But we want that every file will be opened with tool1 and special files (*.tsproj) will be opened with the tool2. But only this special file type. All other data files should use the tool1.

Is there any possible solution using the .gitattribut? What can we do?

Thanks a lot!

Hi @gitsteller,

Thanks for being here! I’m curious to see what the community suggests, in the meanwhile have you looked into negative pattern matching?

1 Like