private void Diff(string relPath) { var patchFile = Differ.DiffFiles(new LineMatchedDiffer(), Path.Combine(baseDir, relPath).Replace('\\', '/'), Path.Combine(patchedDir, relPath).Replace('\\', '/')); var patchPath = Path.Combine(patchDir, relPath + ".patch"); if (!patchFile.IsEmpty) { CreateParentDirectory(patchPath); File.WriteAllText(patchPath, patchFile.ToString(true)); } else { DeleteFile(patchPath); } }