···11+package types
22+33+import "tangled.org/core/appview/filetree"
44+55+type DiffRenderer interface {
66+ // list of file affected by these diffs
77+ ChangedFiles() []DiffFileRenderer
88+99+ // filetree
1010+ FileTree() *filetree.FileTreeNode
1111+1212+ Stats() DiffStat
1313+}
1414+1515+type DiffFileRenderer interface {
1616+ // html ID for each file in the diff
1717+ Id() string
1818+1919+ // produce a splitdiff
2020+ Split() SplitDiff
2121+2222+ // stats for this single file
2323+ Stats() DiffFileStat
2424+2525+ // old and new name of file
2626+ Names() DiffFileName
2727+2828+ // whether this diff can be displayed,
2929+ // returns a reason if not, and the empty string if it can
3030+ CanRender() string
3131+}