diff: show diff type
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M git/diff.go → git/diff.go
@@ -21,6 +21,8 @@ New string } TextFragments []TextFragment IsBinary bool + IsNew bool + IsDelete bool } // A nicer git diff representation.@@ -90,6 +92,8 @@ ndiff := Diff{} ndiff.Name.New = d.NewName ndiff.Name.Old = d.OldName ndiff.IsBinary = d.IsBinary + ndiff.IsNew = d.IsNew + ndiff.IsDelete = d.IsDelete for _, tf := range d.TextFragments { ndiff.TextFragments = append(ndiff.TextFragments, TextFragment{