Understanging Conflicts Merging Algorithm

后端 未结 2 757
暗喜
暗喜 2020-12-18 13:29

I look at a merge marker that looked all screwed up. To give you the situation lets have this:

public void methodA() {
    prepare();
    try {
      doSomet         


        
2条回答
  •  我在风中等你
    2020-12-18 14:10

    In a merge, only the changes that contain conflicts are marked.

    Changes in Rev A and different changes in Rev B, are directly merged in. Only changes in Rev A and Rev B at the same place are marked as conflicts. The user is notified that conflicts exist in the file and need to be resolved.

    When you go to resolve the conflicts, the merged file with have the independent changes from both Rev A and Rev B already in place, and the conflicting markers for the conflicting sections.

提交回复
热议问题