tg-patch: use pretty_tree and diff-tree to generate the patch