More work on porting diff kitten

This commit is contained in:
Kovid Goyal
2023-03-18 15:14:31 +05:30
parent e4d936b5ed
commit ee82cb5a52
6 changed files with 160 additions and 14 deletions

View File

@@ -321,7 +321,9 @@ func do_diff(file1, file2 string, context_count int) (ans *Patch, err error) {
return
}
func diff(jobs []struct{ file1, file2 string }, context_count int) (ans map[string]*Patch, err error) {
type diff_job struct{ file1, file2 string }
func diff(jobs []diff_job, context_count int) (ans map[string]*Patch, err error) {
ans = make(map[string]*Patch)
ctx := images.Context{}
type result struct {