How to visually consume/create .diff .patch files in OS X?

只愿长相守 提交于 2019-12-11 10:05:34

问题


Sorry, I'm just not finding anything that can do this! For example I get a big fat .diff of 30 files.. sure, I can use patch and apply that to my source baseline. But, I'd hope to be able to take that .diff and my source tree and interactively view those changes to review the diff and optionally merge in or ignore sections.


回答1:


Check out opendiff which is part of Mac OS X Developer Tools (XCode). It won't work exactly how you want (directly on .diff files), but you can make a temp copy of your source tree, apply your diffs, then run opendiff to compare visually. You can then selectively merge and choose which version of each change to include.




回答2:


I use "p4merge" from Perforce. It's commercial software, but this particular piece of the tool suite is free and available here on multiple platforms:

http://www.perforce.com/perforce/downloads/

I think you have to download the whole visual client and then pull the pieces you want from the DMG.



来源:https://stackoverflow.com/questions/6209138/how-to-visually-consume-create-diff-patch-files-in-os-x

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!