How to diff/merge changes to a deployment project file

北城余情 提交于 2019-12-02 05:42:13
VonC

You could use an external diff tool to resolve the differences first, then report the real differences (and ignoring the same GUIDs in different positions).

For instance, WinMerge is able to detect similar lines in different places between two files.

The Location pane can indicate difference blocks that are moved.
Moved blocks are two sides of a difference that are in different locations. Moved blocks are indicated by the Moved and Selected Moved difference colors (configurable in WinMerge Options) and by lines connecting their locations in the left and right location bars.


(source: winmerge.org)

If you ignore those moved blocks (which is the default setting), you can focus on the actual differences and report the modification you want.


If those GUIDs keep changing, you can define a regex pattern helping WinMerge to ignore those GUIDs (like it can ignore by default all whitespace), helping it to focus on the rest of the document.

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