进行 SharpSvn 合并时如何忽略空白更改?

How can I ignore whitespace changes when doing a SharpSvn merge?

我有以下代码,想在忽略空格更改的同时进行合并:

string folder2 = @"c:\folder";
Uri uri2 = new Uri("http://repo/branch");
ICollection<SvnRevisionRange> mergeRevisions = new Collection<SvnRevisionRange>();
SvnRevisionRange revRange = new SvnRevisionRange(2, 3);
mergeRevisions.Add(revRange);
var mergeArgs = new SvnMergeArgs();
client.Merge(folder2, uri2, mergeRevisions, mergeArgs);

感谢 royalTS 的评论,我发现以下方法效果很好:

mergeArgs.MergeArguments.Add("-b");

mergeArgs.MergeArguments.Add("-w");