VSTS中自带的比较工具实在是太难用了,和我一直使用的WinMerge简直没法比. 开始不知道VSTS允许使用自定义的比较工具,还是在Google上搜了一把(TFS VSTS Compare tool)找到了这篇文章.我安装上面的说明在配合WinMerge的相关文档完成了比较工具的自定义,效果很棒.我用到的参数样式是:/e /x /wl /dl %6 /dr %7 %1 %2
WinMerge的命令行语法如下:
WinMerge [/r] [/e] [/f filter] [/x] [/s] [/ul] [/ur] [/ub] [/wl] [/wr] [/dl leftdesc] [/dr rightdesc] leftpath rightpath [outputpath]
- /? or -? displays help message
- /r or -r tells winmerge to compare directories recursively
- /e or -e allows WinMerge to be closed with a single esc keypress
- /f or -f allows selecting filter used. Filter can be filemask like "*.h *.cpp" or name of filefilter like "XML/HTML Devel". Quotation marks must be used if filter mask or name contains spaces
- /x or -x closes WinMerge after information dialog when files are identical
-
/s or -s enables single-instance behavior. If there is already WinMerge running new compare is opened to that same instance.
- /ul or -ul tells winmerge to not add left path to MRU
- /ur or -ur tells winmerge to not add right path to MRU
- /ub or -ub tells winmerge to not add both paths to MRU
- /wl or -wl initially opens left side as read-only
- /wr or -wr initially opens right side as read-only
- /dl or -dl adds a description for left side shown instead of directory/filename
- /dr or -dr adds a description for right side shown instead of directory/filename
- leftpath is the directory or filename to open on the left side
- rightpath is the directory or filename to open on the right side
- outputpath is an optional output directory where you want merged files to be saved
0 comments:
发表评论