SharpSvn icon indicating copy to clipboard operation
SharpSvn copied to clipboard

How to open external diff tool?

Open markusstephanides opened this issue 3 years ago • 1 comments

Hi,

I would like to implement the functionality that the svn command

svn diff --diff-cmd "<PATH TO TOOL>" somefile.txt

executes using SharpSvn.

I have seen the various Diff functions but since they output a stream which is not what I want, I'm not very sure which one to use and with which arguments.

Thanks for any help!

markusstephanides avatar Feb 04 '22 12:02 markusstephanides

The thing Subversion does in this case is obtaining the two versions of the file to call the tool on. You can use SvnClient.Write (aka svn cat) for that

rhuijben avatar Feb 12 '22 21:02 rhuijben