difftool: implement the functionality in the builtin