patchutil,types: implement DiffRenderer interface for all diffs
types.NiceDiff and patchutil.Interdiff now implement the new interface. this allows us to remove the differing rendering logic necessary to present each kind of diff.
···22 TextFragments []SplitFragment `json:"fragments"`
23}
2425-// used by html elements as a unique ID for hrefs
26-func (d *SplitDiff) Id() string {
27 return d.Name
28}
29