git: check for binary files
1 file changed, 2 insertions(+), 0 deletions(-)
changed files
M git/diff.go → git/diff.go
@@ -20,6 +20,7 @@ Old string New string } TextFragments []TextFragment + IsBinary bool } // A nicer git diff representation.@@ -88,6 +89,7 @@ for _, d := range diffs { ndiff := Diff{} ndiff.Name.New = d.NewName ndiff.Name.Old = d.OldName + ndiff.IsBinary = d.IsBinary for _, tf := range d.TextFragments { ndiff.TextFragments = append(ndiff.TextFragments, TextFragment{