If you have xcode installed, you can call opendiff
, which is a (graphical) command line comparison tool. From it the man page :
opendiff file1 file2 [-ancestor ancestorFile] [-merge mergeFile] opendiff dir1 dir2 [-ancestor ancestorDirectory] [-merge mergeDirectory]
source share