fork of go-gitdiff with jj support

Use ioutil for compatibility with older Go versions (#31)

Co-authored-by: Noah Goldstein <goldstein.w.n@gmail.com>

authored by goldsteinn Noah Goldstein and committed by GitHub 52645c60 f23f7456

Changed files
+2 -1
gitdiff
+2 -1
gitdiff/patch_header.go
··· 5 5 "errors" 6 6 "fmt" 7 7 "io" 8 + "io/ioutil" 8 9 "mime/quotedprintable" 9 10 "net/mail" 10 11 "strconv" ··· 477 478 payload = strings.ReplaceAll(payload, " =?UTF-8?q?", "") 478 479 payload = strings.ReplaceAll(payload, "?=", "") 479 480 480 - decoded, err := io.ReadAll(quotedprintable.NewReader(strings.NewReader(payload))) 481 + decoded, err := ioutil.ReadAll(quotedprintable.NewReader(strings.NewReader(payload))) 481 482 if err != nil { 482 483 // if err, abort decoding and return original subject 483 484 return encoded