patchutil: move AsDiff and AsNiceDiff to patchutil
Also move FormatPatch to types to avoid an import cycle.
anirudh.fi 8 months ago abf6b940 5065a5dc