How to set up SourceGear DiffMerge as the diff/merge tool for Visual Studio?

后端 未结 4 1416
执笔经年
执笔经年 2021-02-04 11:26

I am using TFS for source control, but I want to use SourceGear DiffMerge for viewing file differences and doing merges. I found the Tools -> Options -> Source Control -> Visua

相关标签:
4条回答
  • 2021-02-04 11:54

    For some reason my old settings for DiffMerge with %1 %2 stopped working, error "File not found (%1). File not found (%2)."

    Changed it to:

    "C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe" $(Base) $(Mine)

    0 讨论(0)
  • 2021-02-04 12:03

    These are the SourceGear settings that I use:

    C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe

    Compare:

    /t1=%6 /t2=%7 %1 %2
    

    Merge:

    /m /r=%4 /t1=%7 /t2=%8 /t3=%6 /c=%9 %2 %3 %1
    
    0 讨论(0)
  • 2021-02-04 12:05

    Firstly, you need to change the default command line to:

    C:\Program Files (x86)\SourceGear\Vault Client\sgdm.exe

    I found the parameters in this thread on the SourceGear support forums, but the arguments given there are incorrect and result in the auto-merge being executed in reverse, i.e. old code overwrites new code. The correct arguments are:

    /m /t1=%6 /t2=%7 /t3=%8 /c=%9 %1 %3 %2 /r=%4

    0 讨论(0)
  • 2021-02-04 12:07

    These are my settings. Can't remember where I got them from but I have used them in VS2010, VS2012, VS2013.

    C:\Program Files\SourceGear\Common\DiffMerge\sgdm.exe

    Compare

    /title1=%6 /title2=%7 %1 %2

    Merge

    /title1=%6 /title2=%8 /title3=%7 /result=%4 %1 %3 %2

    0 讨论(0)
提交回复
热议问题