mf4
1package udiff
2
3// UnifiedDiff is a unified diff.
4type UnifiedDiff = unified
5
6// ToUnifiedDiff takes a file contents and a sequence of edits, and calculates
7// a unified diff that represents those edits.
8func ToUnifiedDiff(fromName, toName string, content string, edits []Edit, contextLines int) (UnifiedDiff, error) {
9 return toUnified(fromName, toName, content, edits, contextLines)
10}