opendiff and FileMerge on OS X

来源:互联网 发布:美式乡村风格知乎 编辑:程序博客网 时间:2024/06/04 20:12

转摘自: http://www.markomedia.com.au/osx/opendiff-and-filemerge-on-os-x/

Today I discovered opendiff tool that’s native to OS X – provided you have installed the Xcode on your system. It allows you to compare 2 directories and perform actions such as merge-left, merge-right etc…

Opendiff simply launches FileMerge OS X utility, which is another one I didn’t know about, and displays differences between 2 selected directories.

The very simple command to compare 2 directories is:

opendiff dir1 dir2

This will then launch FileMerge utility and give you a nice visual representation of differences in your folders:
FileMerge
FileMerge

Marko